position:fixed;top:0;left:0;
margin:0 auto; margin-top:63px;
margin:0 auto; margin-top:63px;
2016-01-23
#mainbody{width:80%;
overflow:hidden;
margin: 0 auto;
margin-top: 63px;} 高度43px從F12去檢視而得知
#top{width:100%;
overflow:hidden;
border-bottom:1px solid #dadad9;
background:#fff;
float:left;
position: fixed; top:0;
text-align:center;}
overflow:hidden;
margin: 0 auto;
margin-top: 63px;} 高度43px從F12去檢視而得知
#top{width:100%;
overflow:hidden;
border-bottom:1px solid #dadad9;
background:#fff;
float:left;
position: fixed; top:0;
text-align:center;}
2016-01-19
很喜歡老師解釋得那么清楚,適合初學(xué)者很好的理解,樓下的懂得多的大牛,可以不聽,別噴,老師說得通俗易懂,聲音也很好聽,贊一個(gè)!!
2016-01-19
講錯(cuò)了吧 未設(shè)置偏移量的時(shí)候 父元素是html 你前面講的還是html。。。
2016-01-17
我的答案:
1.position:fixed;
top:0;left:0;
2.margin:0 auto;
3.margin-top:63px;
1.position:fixed;
top:0;left:0;
2.margin:0 auto;
3.margin-top:63px;
2016-01-17