1223格式布局!!!

來源:互聯網
上載者:User

標籤:point   over   overflow   超連結   滾動   log   頁面   html   文檔   

布局大體分為:                             絕對座標                                  相對座標                                       鎖定(廣告)座標

 位置——position                        absolute                                 relative                                                  fixed

                                                   絕對位置的元素                        同級元素定位                                     設定  top和left之後  

                                                  不受其他位置影響                      實際佔有頁面                                      不會隨捲軸

                                           可通過z-index進行層次分級            可通過z-index進行層次分級                     滾動而滾動

                                                body來定位自己

 

 

全域去底線

 

a<text-decoration:none>

 

指向底線,用於超連結

 

a : hover<texe-decoration:none>

 

 

 

 

指向隱藏與定位————戰!111

 

 

<!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>無標題文檔</title>        <style type="text/css">            .aa {                width: 100px;                height: 50px;                background-color: #0FF;                                      position: relative;/*相對座標*/                overflow: hidden; /*超出部分隱藏掉*/                cursor: pointer; /*指向變小手*/}             .aa:hover {    /*當指向aa的時候*/                overflow: visible;/*超出部分顯示*/            }                        .bb {                width: 100px;                height: 50px;                background-color: #C00;                position: relative;                top: 50px;                overflow: hidden;            }                        .bb:hover {                overflow: visible;            }                        .cc {                width: 100px;                height: 50px;                background-color: #F69;                position: relative;                margin-left: 100px;            }                        .ee {                width: 100px;                height: 50px;                background-color: #0F0;                position: relative;                top: 50px;                overflow: hidden;            }                        .ee:hover {                overflow: visible            }                        .ff {                width: 100px;                height: 50px;                background-color: #000;                position: relative;                left: 100px;            }        </style>    </head>    <body>        <div class="aa">            <div class="bb">                <div class="cc"></div>            </div>            <div class="ee">                <div class="ff"></div>            </div>        </div>    </body></html>

 

1223格式布局!!!

聯繫我們

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