※ 引述《tatsuo769 (fish)》之銘言:
: 我使用CSS來佈置我的網頁
: 可是好像會有個問題
: 就是如果瀏覽器沒有完全展開
: 就會發現裡面的div都黏在一起
: 當我展開才會正常
: 可以請問有人可以教我如何修正這個問題嗎?
我已經改成px了
可是有兩部分區塊還是在沒完全展開就會黏在一起
div#search
{
margin-top:5px;
width :650px;
padding :5px,15px;
font-family: georgia, times, "times new roman", serif;
font-size:medium;
background-color :#33cc66;
}
div#side2 {
position: absolute;
width: 250px;
margin-top:-25px;
right: 30px;
padding: 0px 0px 10px 10px;
border-left: 1px dotted #cccccc;
}
div#side1 {
position: absolute;
width: 650px;
top: 145px;
height:180px;
margin-left:0;
padding: 0 0px 0px 0;
border: 1px dotted #cccccc;
border-top:none;
}
div#side1 h1{
font: 80% Georgia, "Times New Roman", Times, serif;
color: #621313;
background-color: #66cc00;
margin-left: 0;
padding-bottom: 4px;
}
我目前改成px後只有side2正常
請版友幫幫我
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.169.3.207