gpt4 book ai didi

html - CSS 主体宽度未填充 100%

转载 作者:太空狗 更新时间:2023-10-29 14:18:04 27 4
gpt4 key购买 nike

我正在开发一个网页,我注意到了这个问题。

body full width issue print screen请发布您想到的任何内容,这将非常有帮助!

查看网站here

编辑:添加了网站链接

最佳答案

可能想检查这是否可行,它确实解决了我的特定问题。

body {
min-width: fit-content;
}

将 John Mcnulty 的答案添加为粘贴,因为网络链接可能会显示为 404。这实际上有助于规范化 css,而无需浏览器将自己的 css 放入其中。

/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

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;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

关于html - CSS 主体宽度未填充 100%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20400755/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com