我如何避免溢出 [英] How can i avoid overflow

查看:62
本文介绍了我如何避免溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Asp.net中开发的Web应用程序显示了一个水平滚动条以将其删除,但我使用了overflow:hidden:但是问题是,在使用此功能时,它将隐藏不适合屏幕的控件...那又怎样呢?我应该怎么做才能使屏幕适合浏览器(IE 8)..

My web application developed in Asp.net shows a horizontal scroll bar for removing it i used the overflow:hidden but the problem is while am using this it will hide the controls which is not fit to the screen...so what should i do to make the screen fit to the browser(IE 8)..??

推荐答案

如果您的内容太宽而无法容纳屏幕,请重构您的内容.
If your content is too wide to fit the screen, refactor your content.


您似乎需要检查HTML页面的所有布局.使用CSS,不使用绝对定位,使整个布局流畅.特别是,以百分比(例如100%)使用width属性,以em(印刷单位)使用边距和填充,而不以像素为单位,等等.

您可以找到有关正确,灵活或灵活的HTML设计的想法.例如:
http://www.maxdesign.com.au/articles/liquid/ [ http://tjkdesign.com/articles/one_html_markup_many_css_layouts.asp [ http://24ways.org/2006/intricate-fluid-layouts [
It looks like you need to review all the layout of the HTML page. Use CSS, don''t use absolute positioning, make the whole layout fluid. In particular, use width properties in % (such as 100%), use margin and padding in em (typographic units), not in pixels, etc.

You can find may ideas on right fluid, flexible or elastic HTML design. For example:
http://www.maxdesign.com.au/articles/liquid/[^],
http://tjkdesign.com/articles/one_html_markup_many_css_layouts.asp[^],
http://24ways.org/2006/intricate-fluid-layouts[^].

—SA


这篇关于我如何避免溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆