应用 Reset CSS 后,和其他标签失去了默认样式
我发现我应该使用 Reset CSS 文件来制作网站,但是在我包含它之后,所有 和
标签都失去了样式。
不再是斜体,
不再是常量字体。
我通过添加 em { font-style: italic; 来修复它},但我不可能为所有失去样式的标签添加这个?
有什么想法吗?
谢谢,博达·西多。
I found that I should be using Reset CSS file for making websites, but after I include it, all the <em>
and <code>
tags lose their style. <em>
is not longer italic and <code>
is no longer constant font.
I fixed it by adding em { font-style: italic; }
, but I can't possibly add this for all the tags that lost their style?
Any ideas why?
Thanks, Boda Cydo.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简单的方法是从重置中删除您不希望重新设置样式或想要保留的样式。重置CSS并不意味着您不能从中自定义或删除任何内容。
The simple way will be to remove the styles from reset that you don't want re-styled or want to preserve. Reset css does not mean that you can not customize or delete anything from it.
我发现 CSS 重置很痛苦。最后,您基本上放回了默认情况下已有的样式。根据需要设置元素的样式要容易得多。
无 CSS 重置
I found CSS resets to be a pain. In the end, you basically put back the styles that were already there by default. It's much easier to just style the elements as needed.
No CSS Reset