如果页面需要链接
,我如何使用下面的自定义样式覆盖 body 的 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" />
但它不起作用。
最佳答案
检查它是否没有加载更具体的规则,如 body.someclassname
,或使用 important
规则:body{background:red !important; }
关于html - 覆盖 jquery 移动主体背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21025090/