网页解析度1024 * 768 [英] Web Page reesolution 1024*768

查看:66
本文介绍了网页解析度1024 * 768的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Asp.net创建一个网页.我想将分辨率设置为1027 * 768.
我尝试了所有选项,但没有设置.
1)我用%"来设置我的Div,表格等的宽度和高度.问题是如果我用%",如果我在Div中没有​​任何内容,那么我指定的高度将不会受到影响.
以下是我为母版页编写的代码

I am creating a web page using Asp.net. I want to set my resolution as 1027*768.
I have tried with all the options but not getting set.
1) I used "%" to set width and height for my Div, Table, etc. The issue was if i use the "%", if I dont have any content in the Div than the height I specified will not get affect.
Following is the code which i have the written for Master page

<table height="100%" width="100%">
            <tr>
                <td align="center" height="10%" width="100%">
                    <asp:Label ID="header" runat ="server" Text ="Header Part"> </td>
            </tr>
            
            <tr>
                <td align="center" height="5%" width="100%">
                    <asp:Label ID="Menu" runat ="server" Text ="Menu Part"> </td>
            </tr>
            
            <tr>
                <td height="75%" width="100%">
                    <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
                    
                </td>
            </tr>
            
            <tr>
                <td align="center" height="10%" width="100%">
                   <asp:Label ID="Footer" runat ="server" Text ="Footer Part"> </td>
            </tr>
        </table>

推荐答案

不要这样做.现在,这是HTML的作品.恰恰相反:无论您的用户使用多大的页面尺寸,您的页面都应该可以正常工作.如果您做其他任何事情,那么您的页面就毫无价值.谁会想要使用它?

—SA
Don''t do it. This is now HTML works. Just the opposite: you page should work well enough no matter what page size your user would make. If you do anything else, your page simply has no value. Who would ever want to use it?

—SA


像这样尝试

try like this

<div style="height: 100%; width: 50%;">
        hi
    </div>


这篇关于网页解析度1024 * 768的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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