6.操作边框的属性.html

!DOCTYPE htmlhtmlheadmeta charset=UTF-8title/title/headstyle type=text/cssdiv{border: solid;border-style: solid dashed double dotted;border-color: red;width: 200px;height: 200px;}...

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    
    <style type="text/css">
        
        div{
            border: solid;
            border-style: solid dashed double dotted;
            border-color: red;
            width: 200px;
            height: 200px;
            
        }
        
    </style>
    
    <body>
        
        <div>div1</div>
        
        <div>div2</div>
        
    </body>
</html>

 

本文标题为:6.操作边框的属性.html

基础教程推荐