【问题标题】:unreset the reset css取消重置重置css
【发布时间】:2011-12-02 10:25:34
【问题描述】:

我正在为包含 ck 编辑器的应用程序使用重置 css,我不希望重置 css 应用于我的 html 页面中的 CK 编辑器的输出。如何取消设置页面特定部分的重置 css?

【问题讨论】:

标签: css reset


【解决方案1】:

给 CK 输出一个类。在 reset.css 代码之后编写自己的 CSS 代码。参考该类并为其提供您喜欢的属性。例如:

index.html:

<p>Normal text formatted by reset.css</p>
<span class="my-format"><p>Output of CK editor to be formatted by my CSS</p></span>

style.css:

@import url("reset.css");
/* My code goes down here: */
.my-format { font: normal 14px georgia,times,serif; }

【讨论】:

    【解决方案2】:

    你还没有完全理解 reset.css 的意义,是吗?

    你不能应用一些 CSS 来让所有浏览器以不同的方式读取 css(就像之前做的那样,比如 padding、margin、lineheight、zoom 和其他东西)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-25
      • 1970-01-01
      • 1970-01-01
      • 2014-01-07
      • 1970-01-01
      相关资源
      最近更新 更多