0

它是 Windows 中的中间按钮和 OS X 中的绿点——用于调整网页窗口大小的按钮。

我使用 min-width:1000px 来定义当窗口大小小于 1000px 时自动调整大小的位置,并且它可以工作,除了页面两侧可能仍然显示 1em。

关于这可能是什么以及如何解决它的任何想法?

4

1 回答 1

0

您是否使用 CSS 重置?如果您在页面边缘显示了一个小边距/填充/边框,您可以从在样式表顶部使用 CSS 重置中受益,例如:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}

如此处所见。或者也许你正在使用一个?

于 2013-11-05T01:38:19.977 回答