<title>css border</title>
<style>
p.none {border-style:none;} /* 默认无边框 */
p.dotted {border-style:dotted;} /* 点线框 */
p.dashed {border-style:dashed;} /* 虚线框 */
p.solid {border-style:solid;} /* 实线边界 */
p.double {borser-style:double;} /* 两个边界 */
p.groove {border-style:groove;} /* 3D沟槽边界 */
p.ridge {border-style:ridge;} /* 3D脊边界 */
p.inset {borser-style:inset;} /* 3D的嵌入边框 */
p.outset {border-style:outset;} /* 3D的突出边框 */
p.hidden {border-style:hidden;}
p.one {border-style:solid;border-width:5px;} /* 边框宽度 */
p.two {border-style:solid;border-width:medium;}
p.three {border-style:solid;border-width:1px;}
</style>
no border
a dotted border
a dashed border
a solid border
a double border
a groove border
a ridge border
an inset border
an outset border
a hidden border
some text
some text
some text
注意: "border-width" 属性 如果单独使用则不起作用. 要先使用 "border-style" 属性来设置 borders .