首页前端开发HTMLdiv+css无图边框圆角实现思路及代码

div+css无图边框圆角实现思路及代码

时间2024-01-24 00:55:27发布访客分类HTML浏览143
导读:收集整理的这篇文章主要介绍了div+css无图边框圆角实现思路及代码,觉得挺不错的,现在分享给大家,也给大家做个参考。 复制代码代码如下: <htML> <head> <tITle>css圆角效...
收集整理的这篇文章主要介绍了div+css无图边框圆角实现思路及代码,觉得挺不错的,现在分享给大家,也给大家做个参考。
复制代码代码如下:
htML>
head>
tITle> css圆角效果/title>
meta http-equiv="content-tyPE" content="text/html; charset=gb2312">
style type="text/css">
div.RoundedCorner{ background: #9BD1FA}
b.rtop, b.rbottom{ display:block; background: #FFFFFF}
b.rtop b, b.rbottom b{ display:block; height: 1px; overflow: hidden; background: #9BD1FA}
b.r1{ margin: 0 5px}
b.r2{ margin: 0 3px}
b.r3{ margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{ margin: 0 1px; height: 2px}
/style>
/head>
body>
div class="RoundedCorner">
b class="rtop"> b class="r1"> /b> b class="r2"> /b> b class="r3"> /b> b class="r4"> /b> /b>
无图片实现圆角框
b class="rbottom"> b class="r4"> /b> b class="r3"> /b> b class="r2"> /b> b class="r1"> /b> /b>
/div>

div class="RoundedCorner">
b class="rtop"> b class="r1"> /b> b class="r2"> /b> b class="r3"> /b> b class="r4"> /b> /b>
无图片实现圆角框

b class="rbottom"> b class="r4"> /b> b class="r3"> /b> b class="r2"> /b> b class="r1"> /b> /b>
/div>
/body>
/html>

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

边框

若转载请注明出处: div+css无图边框圆角实现思路及代码
本文地址: https://pptw.com/jishu/584834.html
css 倒三角形 CSS 打造(此处有更多内容)的倒三角显示效果 一些常用的DIV+CSS的网页布局所用的代码段

游客 回复需填写必要信息