相對參照元素進行定位
例如:
#box3{
??? width:200px;
??? height:200px;
??? position:relative;????????? ?
}
#box4{
??? width:99%;
??? position:absolute;?? ?
?? ?bottom:0;
?? ?left:0; /*這條css樣式可以省略*/ ????? ?}
這里面的bottom:0 和bottom:0px 有什么區別嗎?
例如:
#box3{
??? width:200px;
??? height:200px;
??? position:relative;????????? ?
}
#box4{
??? width:99%;
??? position:absolute;?? ?
?? ?bottom:0;
?? ?left:0; /*這條css樣式可以省略*/ ????? ?}
這里面的bottom:0 和bottom:0px 有什么區別嗎?
2016-06-17
舉報
2016-06-17
0和0px沒有區別,0只有1個字節,0px有三個字節,為了讓你的網頁代碼簡化。
2016-06-17
沒有區別?。。?!
2016-06-17
沒有區別吧-。-