1.規劃任務六
2.完成基本界面編寫css
headerhtml
設計:git
.topbar: fixed, 定高.可部分套用task3的topbargithub
.conditionbar: 暫定fixed, 定高web
實現:segmentfault
main瀏覽器
設計:wordpress
section.service-list工具
div.service-item開發工具
實現:
div.bottombar: fixed, 定高. 可部分套用task3的topbar
設計:
實現:
1).去除inline-block間距有哪幾種方法? 參考:去除inline-block元素間間距的N種方法
yui3:
.yui3-g { /* 設置父級元素的字符間距,保證瀏覽器兼容性 */ letter-spacing: -0.31em; /* webkit */ *letter-spacing: normal; /* IE < 8 重置 */ word-spacing: -0.43em; /* IE < 8 && gecko */ } .yui3-u { display: inline-block; zoom: 1; *display: inline; /* IE < 8: 僞造 inline-block */ letter-spacing: normal; word-spacing: normal; vertical-align: top; }
RayM提供的:
li { display:inline-block; background: orange; padding:10px; word-spacing:0; } ul { /* 設置父級元素的字符間距,保證瀏覽器兼容性 */ width:100%; display:table; /* 調教webkit*/ word-spacing:-1em; } .nav li { *display:inline;}
2).css有哪些屬性能夠繼承? 參考:CSS中可繼承的屬性有哪些
Tip2: 能夠繼承的屬性通常是顏色、文字、字體間距、行高、對齊方式 & 列表樣式
內聯元素可繼承: