好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

div+css实现圆角即网页上常用的圆角效果

下面是整个页面的 源 码,复制->粘贴->保存成ht ML 文档->可见效果:

复制代码

代码如下:


< strong ><</strong>!DOCTY PE html P ub LIC "-//W3C//DTD XHTML 1.0 Trans IT ional//EN" "http://www.w3. org /TR/xhtml1/DTD/xhtml1 -t ransitional.dtd">
<html XM lns="http://www.w3.org/1999/xhtml">
<head>
< ;m eta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS+DIV 圆 角</title>
<style type="text/css">
# divcss5 {background: transparent; m arg in:1em;}
/*圆角样式 */
.xtop, .xbottom {dis play :block; background:transparent; font- Size: 1px;}
.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}
.xb1, .xb2, .xb3 {h ei ght:1px;}
.xb2, .xb3, .xb4 {background:# fc C; border-left:1px solid #F69; border-right:1px solid #F69;}
.xb1 {mar gin :0 5px; background:#F69;}
.xb2 {margin:0 3px; border-width:0 2px;}
.xb3 {margin:0 2px;}
.xb4 {height:2px; margin:0 1px;}
.xboxcontent {display:block; background: #FCC; border:0 solid #F69; border-width:0 1px;}
/*圆角样式 */
</style>
</head>
<body>
<div id="divcss5">
<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
<div class="xboxcontent" align=" center " style="color:#FF0">
<b>div + css圆角,无需图片</b>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>
</body>
</html>

总结

以上是 为你收集整理的 div+css实现圆角即网页上常用的圆角效果 全部内容,希望文章能够帮你解决 div+css实现圆角即网页上常用的圆角效果 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于div+css实现圆角即网页上常用的圆角效果的详细内容...

  阅读:18次