覆盖jquery移动体背景色

时间:2014-01-09 16:00:12

标签: html css

如果页面需要与

链接,如何使用下面的自定义样式覆盖正文的CSS
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />

<style>
body {
   background-color: red;
}
</style>

我尝试在custom.css中保存自定义样式并将其声明为

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />

<link rel="stylesheet" href="custom.css" />

但它不起作用。

2 个答案:

答案 0 :(得分:1)

检查它是否未加载更具体的规则,例如body.someclassname,或使用important规则:body{background:red !important;}

答案 1 :(得分:0)

很难说没有看到你网页的其他部分,但是你试过了吗?

body {
   background-color: red !important;
}
相关问题