현재 전체 화면의 너비가 100 % 인 div를 만들려고합니다. 그리고 코드를 작성하여 그것을했다 :content outgrows div 100 %
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>100% width</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
html,body {
padding:0px;
margin:0px;
width:100%;
}
</style>
</head>
<body>
<div style="background-color:yellow;">
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</div>
</body>
</html>
은 일반 줌 설정에서 잘 작동하지만 난 (파이어 폭스 6.0.2)에서 최대 줌을 할 때 DIV 안에있는 문자는 노란색 상자를 빨리 성장. 노란색 상자가 창 끝까지 확장되는 방법이 있습니까?
감사합니다.
를 사용하여 DIV 국경을지나가는 내용을 숨기는 시도 할 수 있을까? – Ben
div에 css 만 넣고 html과 body를 제거하면 어떻게됩니까? – cgatian