Re: [問題] css firefox,ie顯示不同

看板Web_Design作者 (^~^)時間19年前 (2006/09/06 14:56), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/5 (看更多)
之前po了文,不過沒附上實際網址, 這一篇補上,先感謝指教, css firefox不正常,ie沒問題, ==== 網址:http://www.ee.ntu.edu.tw/eeoffice/tmp.php IE: http://www2.ee.ntu.edu.tw/~b9901117/tmp1.jpg
firefox: http://www2.ee.ntu.edu.tw/~b9901117/tmp2.jpg
css如下: .iBtn a:link{ color: #001EFF; font-size:9pt; letter-spacing: 1px; text-decoration:none; padding: 0px !important; padding-top: 8px; width: 160px; height: 28px; background-image: url(../../image/stu_image/iBtn.gif); background-repeat: no-repeat; margin: 0 auto;} .Btn a:visited{除了顏色以外同上} .Btn a:hovor{除了顏色以外同上} html: <td valign="top" align="center" width="160" height="28" class="iBtn"> <a href="index_stu.php?cat=news_stu"> 最新消息 </a></td> ==== 測試結果,css內的 width: 160px; height: 28px在firefox內沒有作用, button的背景圖只貼在有連結字後面,沒辦法攤開成160*28 ==== 感謝高手幫忙指教,Thanks~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.42.22

09/06 00:32,
請問一下, 您的背景圖多大啊?
09/06 00:32

09/06 09:33,
就是160*28,
09/06 09:33

09/06 10:12,
能不能給網頁看...
09/06 10:12
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.42.22

09/06 15:27, , 1F
你的連結我用IE看也沒背景,應該是要加display:block;吧
09/06 15:27, 1F

09/06 17:22, , 2F
圖檔的位置對嘛? 是不是設錯圖檔的位置
09/06 17:22, 2F

09/06 18:41, , 3F
先感謝樓上...右邊我都拿掉了,重點是左邊的按鈕,
09/06 18:41, 3F
文章代碼(AID): #14_d4vKx (Web_Design)
討論串 (同標題文章)
文章代碼(AID): #14_d4vKx (Web_Design)