最新推荐 Recommended |
|
|
|
CSS 虚线、双线、槽状、脊状、凹陷、凸出边框 |
|
|
|
样式可以用到<table...>标签和<td...>标签 .xuxian { border-top-width: 1px; //顶边边框宽度 border-right-width: 1px; //右边边框宽度 border-bottom-width: 1px;//底部边框宽度 border-left-width: 1px;//左边边框宽度 border-top-style: dotted;//顶边样式为虚线 border-right-style: dotted;//右边样式为虚线 border-bottom-style: dotted;//底边样式为虚线 border-left-style: dotted;// 左边样式为虚线 border-top-color: #000000;//顶边边框的颜色 border-right-color: #000000;//右边边框的颜色 border-bottom-color: #000000;//底边边框的颜色 border-left-color: #000000;//左边边框的颜色 } 除了定义为虚线你还可以把中间那一组样式定义为如下样式,举例: border-top-style: dashed;//点划线 border-top-style: double;//双线 border-top-style: groove;//槽状 border-top-style: ridge;//脊状 border-top-style: inset;//凹陷 border-top-style: outset;//凸出 |
本文链接:http://www.tc-21.com/ITCenter/200908/20090803123634.html |
|
|
|
|