[問題] CSS Firefox 跟 IE 顯示問題

看板Web_Design作者 (米虫三號)時間17年前 (2008/09/11 23:36), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
http://140.117.74.207/~sweetwords/TEST/ 主要是這頁屬性,用 IE 看兩邊的 boder line 會連到邊界 可是用 firefox 會缺一點點,這是啥問題呢 ._.? 我 CSS 主要是這樣寫 /* CSS Document */ Body { margin:0px; font-size:12px; } /*網頁主體*/ #container{ width:950px; height:768px; border-left:1px solid #ccc; border-right:1px solid #ccc; background-image:url(images/bg.jpg); } /*讀取資訊*/ .thesis_reading{ top:70px; left:35px; position:relative; } .thesis_reading a{ text-decoration:underline; color:#336699; } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.194.56

09/12 10:48, , 1F
div.thesis_reading 使用相對定位,卻沒有減少寬,造成水平溢出
09/12 10:48, 1F

09/12 10:48, , 2F
.thesis_reading {width:800px;}
09/12 10:48, 2F

09/12 10:48, , 3F
或是你要用 #container {overflow:hidden;} 也可以
09/12 10:48, 3F

09/12 11:09, , 4F
我解瞭意思了 感謝樓上 :D
09/12 11:09, 4F
文章代碼(AID): #18oJhi4u (Web_Design)