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,你忘记了和>处的“>”。 –