【发布时间】:2016-01-16 00:36:45
【问题描述】:
我正在使用一个 optimizepress 模板,它有一个 css 文件,其中包含作为主题一部分的以下行:
.container{width:1060px;margin-left:auto;margin-right:auto;background-color:#fff}.
我想覆盖它以使宽度为 900 像素。
如何在不更改 css 文件的情况下做到这一点?
Optimizepress 主题有能力在页面 css 上做,但我尝试使用重要但它不适合我。
【问题讨论】:
-
您将 a) 在其后添加另一个 CSS 文件,b) 在其后添加
<style>块,或 c) 在元素的 HTML 中添加内联样式style="width: 900px;"。