删除页面内容包装 [英] Remove page content wrapping

查看:95
本文介绍了删除页面内容包装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调整窗口大小时如何避免页面内容换行?
我的意思是当用户调整其浏览器窗口或页面内容的大小时
大于可用浏览器窗口的大小,然后显示页面内容
不应该换行,而应该出现滚动,
那我该怎么办呢?

为了避免页面内容换行,我使用了空白:nowrap;
在我的身体标签中,但确实出现了滚动,但身体标签没有增加
它的宽度.内容超出了身体标签,滚动部分显示为白色
背景(将正文和表格宽度设置为100%),有人可以帮我吗?

我已经在表单中使用了菜单,所以当我调整浏览器大小时,它只会被包装,
我希望浏览器尺寸减小时滚动.请帮助我.

How to avoid page content wrapping when resize the window?
i mean when user resize his browser window or page content is
larger then available browser windows size, then the page content
should not be wrap, instead of scroll should appear,
so how can i do that?

To avoid page content wrapping, i have used white-space: nowrap;
in my body tag, then scroll does appear but body tag does not increase
its width. content goes out of body tag and scroll part shows with white
background(body and form width set as 100%), can any one help me?

i have used menu in my form so when i resize browser then it''s only wrap,
i want the scroll when browser size decrease.please help me.

推荐答案

嘿,
创建一个包装器div并将所有内容添加到该div中,并将包装器div的宽度设置为某个静态值,例如1000px;

将包装div的Overflow属性(CSC)设置为autoScroll.

希望对您有所帮助.
问候
Ahsan Sarfraz
hey,
create a wrapper div and add all the contents to that div.and set the width of wrapper div to some static value e.g. 1000px;

set Overflow property(CSC) of the wrapper div to autoScroll.

Hope it will help.
regards
Ahsan Sarfraz


这篇关于删除页面内容包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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