内容页面在整个区域上显示 [英] Content page dispaly on full area

查看:80
本文介绍了内容页面在整个区域上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个从母版页继承的页面.
我已经在.aspx页面上添加了一些内容
但这并不能为我提供完整的浏览器视图.
表示.aspx页在
上不显示我 浏览器的100%区域.
实际上我的内容标签的数据较少.所以当我运行它
并将其显示给浏览器或设计器,那么它就没有
也让我在浏览器以及设计器上也获得100%的视图.

实际上,如果内容可以显示在10%的区域中,那么它会显示
该页面以10%的视图显示,其余部分显示为灰色
背景.

所以我该怎么做才能在整个(浏览器)上查看我的.aspx页

Hi,
i have a page inherit from a master page.
i have added some content on my .aspx page
but it does not give me full browser view.
means .aspx page does not shows me on
100% area of browser.
actually my content tag has lesser data. so when i run it
and see it to browser or designer then it does not
give me 100% view on browser as well designer also.

Actually if content can display in 10% area then it shows
the page in 10% view and remaining part look as gray
background.

so what should i do to see my .aspx page on whole(browser)
screen instead of the content wants some area to display?

推荐答案

您是自己创建母版页的吗?

您可能使用了项目模板,而母版页正在使用CSS来控制页面的主要内容区域.

您可以从头开始创建新的母版页,也可以根据自己的喜好更改CSS.创建一个新的母版页并在aspx标头中使用它是很少的工作.新的母版页将需要具有与当前母版页面相同的内容占位符.

干杯.
Did you create the master page yourself?

It''s likely that you used a project template and the master page is using CSS to control the main content area of the page.

Either start with a new master page from scratch or alter the CSS to your liking. It is very little work to create a new master page and use that in your aspx header. The new master page will need to have the same content placeholders you have in your current one.

Cheers.


100%的正文高度不会使您的页面高度变为100%,正文的高度将取决于您页面的内容.如果您要转到页面高度的100%,请使用< div>标签和javascript.
100% height of body doesn''t make your page height 100%, the body height will be upto your page contents. If you want to go by 100% of page height then design your master page with using <div> tag and javascript.


这篇关于内容页面在整个区域上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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