相對參照元素進行定位
例如:
#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
舉報
2016-06-17
0和0px沒有區(qū)別,0只有1個字節(jié),0px有三個字節(jié),為了讓你的網(wǎng)頁代碼簡化。
2016-06-17
沒有區(qū)別?。。?!
2016-06-17
沒有區(qū)別吧-。-