css

<style type="text/css">

#xsnazzy h1, #xsnazzy h2, #xsnazzy p {margin:0 10px; letter-spacing:1px;}
#xsnazzy h1 {font-size:2.5em; color:#fff;}
#xsnazzy h2 {font-size:2em;color:#06a; border:0;}
#xsnazzy p {padding-bottom:0.5em;}
#xsnazzy h2 {padding-top:0.5em;}
#xsnazzy {background: transparent; margin:1em; width:200px;}

.xtop, .xbottom {display:block; background:transparent; font-size:1px;}
.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}

.xb1, .xb2, .xb3 {height:1px;}


.xb2, .xb3, .xb4 {background:#ffffff; border-left:1px solid #08c; border-right:1px solid #08c;}

.xb1 {margin:0 5px; background:#08c;}
.xb2 {margin:0 3px; border-width:0 2px;}
.xb3 {margin:0 2px;}
.xb4 {height:2px; margin:0 1px;}




.xboxcontent {display:block; background:#ffffff; border:0 solid #08c; border-width:0 1px;}

</style>

<div id="xsnazzy">

<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>

<div class="xboxcontent">

<br><br><br><br><br><br><br>

</div>

<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>

</div>
xihongshi   2007-10-26 16:49:22 阅读:120  评论:0  引用:0
<STYLE type=text/css>
.dotline {
    BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted
}
.div_1{
width:500px;

BORDER-BOTTOM: #99CCFF 1px dashed;BORDER-top: #99CCFF 1px dotted;
BORDER-left: #99CCFF 1px dashed;BORDER-right:#99CCFF 1px dashed;

}

</STYLE>  

<hr class=dotline color=#000000 size=1>

<hr style="BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted" color=#000000 size=1>

<div  class="div_1">
说明:
调用格式:
style="BORDER-BOTTOM: #99CCFF 1px
dashed;BORDER-top: #99CCFF 1px dashed;BORDER-left: #99CCFF 1px dashed;BORDER-right:#99CCFF 1px dashed"
分别表示:
下边框属性:颜色、边框宽度
上边框属性:颜色、边框宽度
左边框属性:颜色、边框宽度
右边框属性:颜色、边框宽度
dashed:表示虚线,可以用以下样式替换
dotted:点划线;solid:实线;double:双线
注意:可以单独定义上下左右边框的样式,也可以联合滤镜定义,打造个性十足的边框!

</div>
xihongshi   2007-10-25 17:57:19 阅读:569  评论:0  引用:0
Copyright@2008 powered by YuLog