我創建了一個簡單的示例來說明我遇到的問題。瀏覽器滾動切斷內容
看來,如果我將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>
也許您可以更新您的問題並將您的託管代碼(現在返回404)轉換爲CodePen之類的內容? – Gerald 2018-03-10 00:25:18