gpt4 book ai didi

css - 右侧渲染问题中的空白(歌剧和 Safari )

转载 作者:行者123 更新时间:2023-11-28 13:00:11 25 4
gpt4 key购买 nike

嗨,有人知道为什么当我在宽度中使用百分比时,operasafari右边 有额外的空白。下面是我的代码:

safari 5.1opera 11.11

fiddle

html:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>sample</title>

<link rel="stylesheet" type="text/css" href="style.css" />

</head>

<body>

<div class="wrap">
<div></div>
<div></div>
<div></div>
<div></div>
</div>

</body>
</html>

CSS:

    html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td, img  {
margin: 0; padding: 0
}

/* remember to define focus styles! */
:focus {
outline: 0;
}

body {
font-family: arial, sans-serif;
font-size:13px;
color:#fff;
background-color:#000;

}

a {color:#444; text-decoration:none;}

ul li {list-style-type:none;}

p {padding:0 0 1.5em 0; line-height:1.7em; float:left;}

img {border:none}


.wrap {
float:left;
width:100%;
}
.wrap div{
float:left;
width:25%;
height:100px;
background-color:#222;
}

enter image description here

最佳答案

尝试添加这个 CSS:

body {
margin: 0px;
padding: 0px;
}

关于css - 右侧渲染问题中的空白(歌剧和 Safari ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16206056/

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