demo22-css背景属性

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            div{
                width: 300px;
                height: 400px;
                background: white;
                /*border: 2px dashed red;*/
                /*
                 top:顶部
                 bottom:底部
                 left:左边
                 right:右边
                 solid:实线
                 dotted:点 线
                 dashed:虚线
                 double:双线
                 * */
                border-top:1px solid red;
                border-bottom:1px dotted blue;
                border-left:1px dashed yellow;
                border-right:2px double green;
            }
        </style>
    </head>
    <body>
        <div>
            还没睡醒啊
        </div>
    </body>
</html>

 

posted @ 2020-03-28 14:47  砚台是黑的  阅读(108)  评论(0编辑  收藏  举报