Designning Webpage Should Take Print Preview into Consideration >>
<< Size of <DIV> on Different Browsers
Make All the Browser Display DIV in the Same Width

Author Zhou Renjian Create@ 2004-07-14 01:48
whizz Note icon

<?xml version="1.0" encoding="utf-8"?>
<!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" lang="en-US" xml:lang="en-US">
<head>
 <title>Test &lt;DIV&gt; size on IE, Mozilla and Opera</title>
</head>
<body>
 <div id="testDIV" style="width:20px;border-style:solid;border-width:5px;border-color:gray;overflow:visible;">
  <div style="width:20px;background-color:navy;height:80px;">
  </div>
 </div>
</body>
</html>

Bold codes are crucial.

本记录所在类别:
本记录相关记录: