css的初步認識

來源:互聯網
上載者:User

標籤:alt   sof   code   部分   ted   css   url   nbsp   indent   

CSS初步認識思維導圖

 部分代碼如下:

<style type="text/css">        body{            margin:0; padding:0;         }        div{            border:3px solid;border-color:green;            margin:0;padding:0;             height:400px;            background-color:#00cccc;        }        ul{            text-align:left;                width:100px;            margin-left:30%;border:2px solid red;         }        li{            color:red;             list-style-image:url(li03.jpg);         }        h1{            border-style:dotted solid double; border-color:red;            color:#666666;            text-align:center;            text-decoration:underline;            border-width:4px;            width:20%; background-color: #9966ff;            margin-left: 40%;            margin-right: 20%;            margin-bottom:0;margin-top:0;            /*如果要讓一個盒子置中   這個盒子的左右外邊距 zhi  auto*/        }        p{            color: #595959;            text-indent:2em;         }    </style>
  運行結果: 

css的初步認識

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.