97-100 css 各种边框样式设计
作者:互联网
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>边框</title> <style> p.none { border-style: none; } p.dotted { border-style: dotted; } p.dashed { border-style: dashed; } /* 实线边框 加宽度 */ p.solid { border-style: solid; border-width: 5px; } p.double { border-style: double; } p.groove { border-style: groove; border-color: hotpink; } p.ridge { border-style: ridge; } p.inset { border-style: inset; } p.outset { border-style: outset; } p.hidden { border-style: hidden; } p.demo01 { border-style: solid; border-top-style: dotted; border-right-style: solid; border-bottom-style: dotted; border-left-style: solid; } </style> </head> <body> <p class="none">无边框。</p> <p class="dotted">虚线边框。</p> <p class="dashed">虚线边框。</p> <h1>边框宽度 </h1> <p class="solid">加入边框宽度的实线边框。</p> <p class="double">双边框。</p> <h6>边框颜色</h6> <p class="groove"> 粉红色 凹槽边框。</p> <p><b>注意:</b> "border-color" 属性 如果单独使用则不起作用. 要先使用 "border-style" 属性来设置边框。</p> <p class="ridge">垄状边框。</p> <p class="inset">嵌入边框。</p> <p class="outset">外凸边框。</p> <p class="hidden">隐藏边框。</p> <p class="demo01">边框-单独设置各边 2个不同的边界样式。左边为实线,上下为虚线 </p> </body> </html>
效果
标签:style,dotted,实线,solid,边框,97,100,border,css 来源: https://www.cnblogs.com/zhuiqiuzhuoyueyouminxing/p/15868029.html