Filling the Web page with a splitter
来源:互联网 发布:java数组与集合的区别 编辑:程序博客网 时间:2024/06/09 06:37
To create the feel of a desktop application, you may want to have a splitter control fill the entire Web page. To
do this, you must obviously set the Widthand Heightproperties of the splitter to "100%". However, if you just
set those properties and run your application, you may encounter some unexpected behavior. For example, you
may find the splitter with a height of 0!
To achieve the expected behavior, you need to make some changes to the tags that Visual Studio automatically
adds to the aspx file:
1. On the <html>tag, set the styleattribute to give the document a height of 100%:
style="height:100%".
2. On the <body>tag, you must again set the styleattribute to include a height of 100%. In addition, the
style attribute must reset the margin. The default margin of the body is 5 pixels, and you will want to
change this to 0. Optionally, you may also want to remove the page scroll bars for a more desktop-like
feel. Putting these changes together gives the tag:
<body style="height:100%;margin:0px" scroll="no">
3. Any elements that contain the splitter must also have their height set to 100% and their margin set to 0.
This includes the <form>tag:
<form id="form1" runat="server" style="height:100%;margin:0px">
do this, you must obviously set the Widthand Heightproperties of the splitter to "100%". However, if you just
set those properties and run your application, you may encounter some unexpected behavior. For example, you
may find the splitter with a height of 0!
To achieve the expected behavior, you need to make some changes to the tags that Visual Studio automatically
adds to the aspx file:
1. On the <html>tag, set the styleattribute to give the document a height of 100%:
style="height:100%".
2. On the <body>tag, you must again set the styleattribute to include a height of 100%. In addition, the
style attribute must reset the margin. The default margin of the body is 5 pixels, and you will want to
change this to 0. Optionally, you may also want to remove the page scroll bars for a more desktop-like
feel. Putting these changes together gives the tag:
<body style="height:100%;margin:0px" scroll="no">
3. Any elements that contain the splitter must also have their height set to 100% and their margin set to 0.
This includes the <form>tag:
<form id="form1" runat="server" style="height:100%;margin:0px">
- Filling the Web page with a splitter
- Stroking or Filling with a Gradient Color
- Take (and Manipulate!) a Photo with a Web Page
- the first time to write a web page
- Umbraco(7)-The Navigation Menu And A Parent Page with Infinite Children
- How do I determine if a web page exists with shell scripting?
- Stroking or Filling with a Color:画或填充一种颜色
- poj2070 Filling Out the Team
- zoj2321 Filling Out the Team
- POJ2070 Filling Out the Team
- EU4-23: Filling a prescription
- How To Retrieve the URL of a Web Page from an ActiveX Control
- How to show a Power View report at the SharePoint page (Silverlight Web Part)
- Filling
- IE title changes to <afterHash> if the page has a url with '#' , and has flash/swf embedded in it
- Get the page name in asp.net web page
- The Life Cycle of a JSP Page
- Back to Top in the web page
- .net 将yyyyMMDDHHmmss转为datetime
- Eclipse:Android开发中如何查看System.out.println的输出内容
- hdu1272小希的迷宫
- linux下开源软件
- 纯JSP+DWR实现三级联动下拉选择菜单
- Filling the Web page with a splitter
- 使用openprocess时解决问题,关于权限分配有感
- NGUI自定义图集和自定义字体
- C++中char与wchar_t符号问题
- 关于Java反射的一些事
- WindowsMediaPlayer控件的使用
- Ecshop后台对ecshop官网的调用api.ecshop.com调用 api调用
- 找师傅
- 删除oracle数据库