很早知道這種寫法,由于基礎面向對象不夠扎實一直在回避,但是面對整站這種方法還是有必要會
html部分:
111 現實 層
css樣式:
#div1{width: 100px;height: 100px;background: #ccc;} #div2{width:100px;height: 20px;background: red;} #div3{width: 300px;height: 200px;border: 1px solid #ccc;position: absolute;;margin-left: -150px;margin-top:-100px;left:50%;top: 50%;display: none;} li{width: 100px;float: left;background: #ccc;} .active{background: red;} .tab_main{display: none;} .clearfix:after{clear: both;display: table;content:'';} .cleafix{zoom:1;}
js代碼:
希望本文所述對大家JavaScript程序設計有所幫助。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com