我如何使我的网站跨浏览器兼容 [英] How do i make my Website cross-Browser compatible

查看:91
本文介绍了我如何使我的网站跨浏览器兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的网站跨浏览器兼容
当我使用css文件生成动态网站时,当我使用不同的浏览器进行检查时,这些css文件会丢失一些,其中一个浏览器的属性与其他浏览器的属性不同,例如IE 6,7和mozilla fire foxetc等问题)
那么是否有任何解决方案可以通过采用动态控件使设计在所有浏览器中以完美的视角完美呈现,也请告诉我是否有任何东西,我已经遵循W3C标准,但是标准列表不存在

How do i make my Website cross-Browser compatible
when i am generating dynamic websites with css files these css files are some where missing when i am checking with different browsers and one browsers attribute-properties are different wtih other browser''s property for example problem with IE 6,7 and mozilla fire foxetc)
so is there any solution such that the design shoud come perfect in all browsers with equal view by taking Dynamic controls also please tell me if any thing is there,i have followed the W3C standrads but list of standrad is not there

推荐答案

一些技巧.
1.除非有必要,否则不要以px为单位指定高度或宽度.
2.永远不要给< table cellpadding ="2" ... ...而应使用Css中的padding类.
3.如果您是客户端功能中的某个地方使用writtnig document.getElementById,并且如果您将< as:Scriptmanager与您一起使用,请使用
Hi, some tips.
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天全站免登陆