利用CSS簡單布局的不同組合類別型

來源:互聯網
上載者:User
關於CSS布局頁面的簡單組合方式:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS格式與布局</title><style type="text/css">*{ margin:0px auto; padding:0px; font-family:微軟雅黑}/*注意*//*.創造力{ width:200px; height:200px; background-color:#F00; margin:10px 0px 0px 10px; float:left}*/#menu{ width:1200px; height:45px; background:#90F; margin-top:20px}.text{ width:200px; height:45px; float:left; text-align:center; line-height:45px; vertical-align:middle}.text:hover{ background-color:#000; color:#F00; cursor:pointer} /*滑鼠放上來*/</style></head><body><ol style="list-style:none">    <li>足球</li>    <li>籃球</li>    <li>羽毛球</li></ol><ol style="list-style-image:url(../IMG/QQ%E5%9B%BE%E7%89%8720170711193040.gif)">    <li>足球</li>    <li>籃球</li>    <li>羽毛球</li></ol><div style="width:300px; height:300px; background-color:#0F0; position:fixed; top:20px; left:20px" ></div><div style="width:200px; height:500px; background-color:#099"></div><div style="width:200px; height:500px; background-color:#060"></div><div style="width:200px; height:500px; background-color:#055"></div><div style="width:200px; height:500px; background-color:#099"></div><div style="width:200px; height:500px; background-color:#060"></div><div style="width:200px; height:500px; background-color:#055"></div><div style="width:400px; height:400px; position:absolute; top:100px; left:100px"><div style="width:300px; height:300px; background-color:#0F0; position:absolute; top:50px; left:50px"></div></div><div style="width:200px; height:500px; background-color:#099"></div><div style="width:200px; height:500px; background-color:#060"></div><div style="width:200px; height:500px; background-color:#055"></div><div style="width:300px; height:300px; background-color:#0F0; position:absolute; top:200px; left:200px"></div><div style="width:300px; height:300px; background-color:#0F0; position:relative"></div><div class="創造力">1</div><div class="創造力">2</div><div class="創造力">3</div><div class="創造力">4</div><div class="創造力">5</div><div class="創造力">6</div><div style="clear:both"></div><div style="width:800px; height:500px; background-color:#0F0"></div><div id="menu">    <div class="text">首頁</div>    <div class="text">產品介紹</div>    <div class="text">產品圖片</div>    <div class="text">產品參數</div>    <div class="text">關於服務</div>    <div class="text">聯絡我們</div></div></body></html>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.