2012-07-27 3 views
0

이 문제는 단지 나쁜 꿈이지만, Photoshop에서 두 요소의 너비를 측정 할 때 잘못된 크기가 나타납니다.Internet Explorer가 요소의 너비를 잘못 렌더링합니다.

<!DOCTYPE HTML> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<title>Untitled Document</title> 

<style>* { margin: 0; padding: 0; border: 0: border-collapse:collapse;}</style 

</head> 



<body> 

    <table width="129" border="0" cellpadding="0" cellspacing="0" style="width:129px; height:18px;background-color:black;"> 
    <tr> 
     <td>&nbsp;</td> 
    </tr> 
</table> 
Renders above table as 134 pixels 

<br/> 

<div style="width:29px;height:18px;background-color:Black;"></div> 
    ​ 
Renders above div as 30 pixels 
</body> 
</html> 

답변

2

브라우저가 100 % 확대/축소되어 있습니까? IE7/8/9로 테스트 한 결과 측정치는 129px 및 29px로 일치했지만 한 수준 (105 %)으로 확대하면 134px 및 30px를 언급 한 것처럼됩니다.

+0

좋은 점 !!! 고마워! – user1556451

관련 문제