![](/img/trans.png)
[英]horizontal scroll bar appearance on web page with change in screen resolution
[英]Width less than screen resolution. But still showing horizontal scroll bar. what can be the reason?
我將這種樣式的Web內容放入此div標簽中。
#container
{
width:1000px;
height:700px;
border:1px solid red;
margin:auto;
}
<body>
<div id="container">
container with equal margins on window resize<br />
<br /><br /><br />
<b>
width and height values set to yours 1024x768
</b>
</div>
</body>
我正在嘗試以1024x768的屏幕分辨率顯示頁面,但它顯示的是水平滾動條。 是什么原因?
降低高度,使邊距適合您提到的屏幕分辨率
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.