【发布时间】:2011-09-25 13:39:02
【问题描述】:
我的 Chome 12 发生了一些奇怪的事情。
我几天前下载了最新的样板并在上面进行了设计。一切正常。
5 分钟前,Chrome (Webkit) 突然决定在我的设计中插入额外的 css 规则:
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
-webkit-padding-start: 40px;
如何在不添加额外重置的情况下摆脱这种情况?
编辑:也遇到了 h1 元素的问题
-webkit-margin-before: 0.67em;
-webkit-margin-after: 0.67em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
Edit2:我的重置包含
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup,
var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer,
header, hgroup, menu, nav, section, summary, time, mark, audio, video
{ margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
【问题讨论】:
-
这些不被
margin:0覆盖吗? -
你能发一个链接到页面吗?
-
display:inline-block ?
-
不,问题已经回答了。
标签: css google-chrome webkit reset