안녕하세요, opera
및 safari
에 내 너비가 백분율을 사용하는 경우 right
에 여분의 공백이있는 이유를 알고 계실 수 있습니다.오른쪽 공백 렌더링 문제 (오페라 및 사파리)
safari 5.1
및 opera 11.11
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;
}
0,123,516 아래에있는 내 코드입니다
예제 코드 사용 [모든면에 공백이있는 문서 제공] (http://jsfiddle.net/FgaBE/embedded/result/) ... 전체 HTML/CSS를 게시 할 수 있습니까? – Nightfirecat
답장을 보내 주셔서 감사합니다. 위의 HTML을 업데이트합니다. – jhunlio
게시물에 CSS 코드가 모두'style.css'에 있습니까? – Nightfirecat