CSS的正確加載在Firefox,但在你的CSS錯誤未在Firefox中被渲染(但在IE/Chrome瀏覽器正在被渲染)。看看Firefox Web控制檯;它列出了bootstrap.css中沒有被渲染的行號。
要使用Web控制檯,請訪問:
工具 - > Web開發 - > Web控制檯
這些都是在Web控制檯所列的錯誤四:
[14:30:32.700] Expected declaration but found '*'. Skipped to next declaration. @ http://zionscape.net/landing/RuneScape%20Fanpage/css/bootstrap.css:3462
[14:30:32.700] Expected end of value but found '\9 '. Error in parsing value for 'background-color'. Declaration dropped. @ http://zionscape.net/landing/RuneScape%20Fanpage/css/bootstrap.css:3467
[14:30:32.700] Expected declaration but found '*'. Skipped to next declaration. @ http://zionscape.net/landing/RuneScape%20Fanpage/css/bootstrap.css:3472
[14:30:32.700] Expected declaration but found '*'. Skipped to next declaration. @ http://zionscape.net/landing/RuneScape%20Fanpage/css/bootstrap.css:3473
末尾的數字是指語法錯誤的行號。例如,bootstrap.css:3473
表示bootstrap.css的第3473行存在錯誤。
這裏是上述四個錯誤的CSS,以指出作爲註釋的問題:
.btn-inverse.disabled,
.btn-inverse[disabled] {
color: #ffffff;
background-color: #222222;
*background-color: #151515; // Issue here is the *
}
.btn-inverse:active,
.btn-inverse.active {
background-color: #080808 \9; // Issue here is the "/9"
}
button.btn,
input[type="submit"].btn {
*padding-top: 3px; // Issue here is the *
*padding-bottom: 3px; // Issue here is the *
}
請不要鏈接到你的網站。閱讀此:http://meta.stackexchange.com/questions/125997/something-in-my-web-site-or-project-doesnt-work-can-i-just-paste-a-link-to-it –
@ user2902115,你忘記了和>處的「>」。 –