Another example is the concise code of the rounded corner implemented by pure Css.

Source: Internet
Author: User

Thank you for your contribution to www.52webui.com.

In the past, I published many articles on Css rounded corners, including pure Css and combination of Css and images. Today I received my contribution from the webmaster of the design network, it is a rounded corner effect implemented by pure Css. The code is concise and not too beautifying. Please learn and enjoy it:

Css section:

Copy to ClipboardReference: [www.bkjia.com] <style>
# Roundhorn01 {width: 161px; height: auto ;}
. B1,. b2,. b3,. b4,. b1b,. B2B,. b3b,. b4b,. b0 {display: block; overflow: hidden ;}
. B1,. b2,. b3,. b1b,. B2B,. b3b {height: 1px ;}
. B2,. b3,. b4,. B2B,. b3b,. b4b,. b0 {border-left: 1px solid #30b1e5; border-right: 1px solid #30b1e5 ;}
. B1,. b1b {margin: 0 5px; background: #30b1e5 ;}
. B2,. B2B {margin: 0 3px; border-width: 2px ;}
. B3,. b3b {margin: 0 2px ;}
. B4,. b4b {height: 2px; margin: 0 1px ;}
. D1 {background: # ECF7FB ;}
. K0 {height: auto ;}
</Style>

HTML section:

Copy to ClipboardReference content: [www.bkjia.com] <div id = "roundhorn01"> <B class = "b1"> </B> <B class = "b2 d1"> </B> <B class = "b3 d1"> </B> <B class = "b4 d1"> </B>
<Div class = "b0 d1 k0"> Liehuo. Net
</Div>
<B class = "b4b d1"> </B> <B class = "b3b d1"> </B> <B class = "B2B d1"> </B> <B class = "b1b"> </B> </div>

Run the demo:

<Style> # roundhorn01 {width: 161px; height: auto ;}. b1 ,. b2 ,. b3 ,. b4 ,. b1b ,. b2B ,. b3b ,. b4b ,. b0 {display: block; overflow: hidden ;}. b1 ,. b2 ,. b3 ,. b1b ,. b2B ,. b3b {height: 1px ;}. b2 ,. b3 ,. b4 ,. b2B ,. b3b ,. b4b ,. b0 {border-left: 1px solid #30b1e5; border-right: 1px solid #30b1e5 ;}. b1 ,. b1b {margin: 0 5px; background: #30b1e5 ;}. b2 ,. b2B {margin: 0 3px; border-width: 2px ;}. b3 ,. b3b {margin: 0 2px ;}. b4 ,. b4b {height: 2px; margin: 0 1px ;}. d1 {background: # ECF7FB ;}. k0 {height: auto ;} </style> <div id = "roundhorn01"> <B class = "b1"> </B> <B class = "b2 d1"> </B> <B class = "b3 d1"> </B> <B class = "b4 d1"> </B> <div class = "b0 d1 k0"> Liehuo, fire College. net </div> <B class = "b4b d1"> </B> <B class = "b3b d1"> </B> <B class = "B2B d1"> </B> <B class = "b1b"> </B> </div> <br/> <center> If the effect cannot be displayed, press Ctrl + F5 to refresh the page. For more webpage code: <a href = 'HTTP: // www.bkjia.com/'target = '_ blank'> http://www.bkjia.com/</a> </center>

Tip: the code can be modified before running!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.