分辨率较小,内容尽量适应
如果您在访问时注意到... http://www.thebattleforarcadia.com/construction/index .html 当您缩小屏幕尺寸时,顶部栏内容会溢出其父 div 并覆盖网站的其余部分。
我想做的是,如果接收端的分辨率太小,我想强迫他们必须使用底部的滚动条,这样他们才能看到一切。这样网站就可以正常显示了。
有什么编码想法吗?
谢谢你, 亚伦
If you will notice when you visit... http://www.thebattleforarcadia.com/construction/index.html when you shrink the size of the screen the top bar content overflows it's parent div and runs over the rest of the website.
What I want to do is, if in-case the resolution of the receiving end is too small, I want to force them to have to use the scrollbar at the bottom so they can see everything. Just so the website is displayed properly.
Any coding ideas?
Thank you,
Aaron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
添加...
在
#新闻容器
CSS 规则。
您的网站在 1280x** 分辨率下可以正常显示,但在任何小于该分辨率(宽度)的情况下都会出现垂直滚动条。
也许您可以将最小宽度设置为 960px 并使文本扩展为两行(稍微推动顶部图形)?只是一个建议
编辑:这是一个示例
上面的示例将使标题在分辨率缩小时“展开”,而不会强制屏幕宽度<; 1280px用户使用垂直滚动条
Add...
at the
#news-container
css rule.
Your website will display fine in 1280x** resolutions but there will be a vertical scrollbar in anything less than that (in width).
Perhaps you could make the min-width 960px and make the text expand in two lines (pushing the top graphic a bit) ? Just a suggestion
EDIT: here's an example
The above example will make the header "Expand" when the resolution is shrinked without forcing screenwidth < 1280px users to use the vertical scrollbar
指定
body
元素或任何其他设置宽度的元素,您希望min-width
与之匹配。这应该确保每当以较小的分辨率查看页面时都有一个水平滚动条请参阅此处 网页常用的像素大小及其优缺点。
Give the
body
element or any other element that is setting the width you want amin-width
to match that. This should make sure that whenever the page is being viewed on a smaller resolution have a horizontal scroll-barSee here for Commonly used pixel sizes for webpages and their pros/cons.