MozTW 討論區 https://forum.moztw.org/ |
|
CSS在Firefox中失敗 https://forum.moztw.org/viewtopic.php?f=13&t=2545 |
第 1 頁 (共 1 頁) |
發表人: | taipeidaniel [ 2004-06-16, 10:06 ] |
文章主題 : | CSS在Firefox中失敗 |
在IE6.0下可以看到...但在Firefox下CSS效果全沒出來 頁頭 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="zh-tw"> <head> <meta http-equiv="Content-Language" content="zh-tw"> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>諮商服務</title> <base target="_self"> <link rel="stylesheet" type="text/css" href="style1.css" /> </head> style1.css內容 h1 {font-family:"標楷體"} h2 {font-family:"標楷體"} h4 {color:blue} body {background-image:url(backimg.jpg); background-color:wheat } .red {color:red} span.fk {font-family:"標楷體"} a:link {text-decoration: none; color:blue } a:visited{text-decoration: none; color:blue } a:hover {text-decoration:none;color:red} p.mbody {line-height:150%;text-indent:24pt} 到底是哪裡出了問題了?? 我的系統是win98se 還是有其他人的可以看到?? 原始連結 http://home.kimo.com.tw/taipeidaniel 謝謝大家幫忙 丹尼爾 |
發表人: | blishs [ 2004-06-16, 11:06 ] |
文章主題 : | |
我的網頁也是這樣,放在 yahoo 都沒有 css 的效果 不過同樣的網頁,放到 hinet 就可以 不曉得是 yahoo 的問題,還是 mozilla 的(or both?) |
發表人: | piaip [ 2004-06-16, 12:10 ] |
文章主題 : | Re: CSS在Firefox中失敗 |
taipeidaniel 寫: 在IE6.0下可以看到...但在Firefox下CSS效果全沒出來
<link rel="stylesheet" type="text/css" href="style1.css" /> 打開你的 javscript console 看一下,會看到 錯誤: 無法載入樣式表(Stylesheet) http://home.kimo.com.tw/taipeidaniel/style1.css,因為它的 MIME 型態「text/plain」不是「text/css」。 是 server 的問題 |
發表人: | taipeidaniel [ 2004-06-16, 13:27 ] |
文章主題 : | |
那怎麼辦?? 把<link rel="stylesheet" type="text/css" href="style1.css" /> 改成<link rel="stylesheet" type="text/plain" href="style1.css" />也無效啊 已經寫信給Yahoo的客服了..不知會怎麼回應 |
發表人: | 訪客 [ 2004-06-16, 15:15 ] |
文章主題 : | Re: CSS在Firefox中失敗 |
piaip 寫: taipeidaniel 寫: 在IE6.0下可以看到...但在Firefox下CSS效果全沒出來 <link rel="stylesheet" type="text/css" href="style1.css" /> 打開你的 javscript console 看一下,會看到 錯誤: 無法載入樣式表(Stylesheet) http://home.kimo.com.tw/taipeidaniel/style1.css,因為它的 MIME 型態「text/plain」不是「text/css」。 是 server 的問題 我的個人網頁以前在 yahoo 時也碰到這個情形,當時我把宣告改為 html translate 而不要用 html strict 或 xhtml,這樣 mozilla* 就可以讀得出 css 了。 |
發表人: | taipeidaniel [ 2004-06-16, 20:56 ] |
文章主題 : | |
謝謝hemiola 我把文件改成<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 並把dtd幹掉之後...果然就正常了 YA! YA! YA! 謝謝大家幫忙 丹尼爾 |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |