標籤: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格式布局!!!