Day.01.18 css的边框

作者: 挂树上的骷髅怪 | 来源:发表于2017-01-18 13:06 被阅读16次
    <!DOCTYPE html>
    <html>
     <head>
     <meta  charset="utf-8">
      <title> 边框 </title>
        <style type="text/css">
            #div-box{
                width:300px;
                height:200px;
                border:3px dotted red;
            }
        </style>
     </head>
     <body>
        <div id="div-box">
            腊月二十一的中午
        </div>
     </body>
    </html>
    

    总结:
    1.border的三个属性值:宽度 样式 颜色
    2.border-top只有上边有边框,border-bottom只有下面有边框,一次类推

    相关文章

      网友评论

        本文标题:Day.01.18 css的边框

        本文链接:https://www.haomeiwen.com/subject/rpavbttx.html