相對(duì)參照元素進(jìn)行定位
例如:
#box3{
??? width:200px;
??? height:200px;
??? position:relative;????????? ?
}
#box4{
??? width:99%;
??? position:absolute;?? ?
?? ?bottom:0;
?? ?left:0; /*這條css樣式可以省略*/ ????? ?}
這里面的bottom:0 和bottom:0px 有什么區(qū)別嗎?
例如:
#box3{
??? width:200px;
??? height:200px;
??? position:relative;????????? ?
}
#box4{
??? width:99%;
??? position:absolute;?? ?
?? ?bottom:0;
?? ?left:0; /*這條css樣式可以省略*/ ????? ?}
這里面的bottom:0 和bottom:0px 有什么區(qū)別嗎?
2016-06-17
舉報(bào)
2016-06-17
0和0px沒(méi)有區(qū)別,0只有1個(gè)字節(jié),0px有三個(gè)字節(jié),為了讓你的網(wǎng)頁(yè)代碼簡(jiǎn)化。
2016-06-17
沒(méi)有區(qū)別!?。?!
2016-06-17
沒(méi)有區(qū)別吧-。-