我创建了一个简单的示例来说明我遇到的问题。
似乎如果我将一个DIV设置为特定的像素宽度,然后缩小浏览器直到水平滚动条出现,然后向右滚动,内容就会被截断。或者至少是部分内容。
似乎如果我将一个DIV设置为特定的像素宽度,然后缩小浏览器直到水平滚动条出现,然后向右滚动,内容就会被截断。或者至少是部分内容。
http://www.artworknotavailable.com/examples/cutoff.html
我在这里错过了什么吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Browser Cutoff Example</title>
</head>
<body>
<div>
<div style="background-color:#009900;">
<div style="width:800px;">
<strong>Width: 800px </strong>
<br />
Resize your browser Smaller than the width of this box until Horizontal scroll bars appear
<br />
Now scroll to the right.
<br />
Why is the box getting cut off?
</div>
</div>
</div>
</body>
</html>