如何使网页适合屏幕 [英] how to fit the web page to the screen

查看:100
本文介绍了如何使网页适合屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是Lakshmna rao,我的网页大小为1200px/800px.在我的系统中,它适合我的屏幕,但是在其他低/高分辨率显示器中,它已更改.我如何修复我的网页,使其适合任何屏幕.谁能帮我这个忙...谢谢.........

Hi i am Lakshmna rao, my web page is at the of size 1200px/800px. In my system it is fit for my screen, but in other low/high resolution monitors it is changed,How can i fix my web page to fit on any screen. can any one Help Me in This... Thanking You............

推荐答案

在这里看看:
1.除非有必要,否则不要以px为单位指定高度或宽度.
2.永远不要给< table cellpadding ="2" ... ...而应使用Css中的padding类.
3.如果您是客户端功能中的某个地方使用writtnig document.getElementById,并且如果您将< as:Scriptmanager与您一起使用,请使用
Have a look here:
1. Never give height or width in px..unless it is necessary.
2. Never give <table cellpadding="2" ... instead apply padding class from Css.
3. If u are writtnig document.getElementById somewhere in ur Client side fucntion and if u have the <as:Scriptmanager with u then use


get ...
即代替document.getElementById("objID");写
get...
i.e instead of document.getElementById("objID"); write


get("objID"); //as
get("objID"); //as


这篇关于如何使网页适合屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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