控件未正确显示 [英] Controls not displayed properly

查看:68
本文介绍了控件未正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个Web应用程序,我必须从不同的机器上访问它。但我的问题是,当页面显示时我正在使用的Web控件移位在不同的显示器上。我可以避免this.plz帮助。


提前感谢。

解决方案

你好,


两台机器是否使用不同的浏览器(或同一浏览器的不同版本)?这是导致网页呈现方式不同的最可能原因。

B博士




是的我正在使用的IE版本不同,但我的页面必须在具有不同浏览器和不同宽度和分辨率的各种机器上打开。我的页面应该足够完美,可以在所有机器上运行。帮助。


提前感谢。



你好,


两台机器是否使用不同的浏览器(或同一浏览器的不同版本)?这是导致网页呈现方式不同的最可能原因。
博士B


你知道吗文档类型定义(DTD)是?这是<!DOCTYPE .....>中指定的内容。标记在页面的开头。它会告诉浏览器您将使用哪些规则,以及如何显示构成页面的元素(标签)。


您可能正在使用默认值ASP.NET的文档类型定义(DTD),即XHTML 1.0 Transitional。您可能需要将DTD更改为较早的DTD,以便在不同浏览器之间获得更一致的外观。本教程是一个很好的起点

http:// aspnetresources.com/articles/doctype.aspx

我在IE 6和IE 7上遇到了一些问题,我发现从


[HTML]<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> [/ HTML]




[HTML]<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN" http://www.w3.org/TR/html4/loose.dtd"> [/ HTML]


取得了我想要的结果。如果不是,你需要对不同的DTD进行更多的研究。


我希望这会有所帮助,


博士乙

Hi all,
I am developing a web application,and i have to access it from different machines.but my problem is that,the web controls that i am using shift when the page is displayed on different monitor.how can i avoid this.plz help.

thanks in advance.

解决方案

Hi there,

Are the two machines using different browsers (or different versions of the same browser)? That is the most likely cause of your web pages rendering differently.

Dr B


Hi,
yes the IE versions that i am using are different,but my pages have to be opened on various machines with different browsers and different width and resolution.My pages should be perfect enough to be run on all machines.plz help.

thanks in advance.



Hi there,

Are the two machines using different browsers (or different versions of the same browser)? That is the most likely cause of your web pages rendering differently.

Dr B


Do you know what a Document Type Definition (DTD) is? This is the thing that is specified in the <!DOCTYPE.....> tag at the beginning of your pages. It tells the browser which set of rules you are going to be using and therefore how to display the elements (tags) that make up your pages.

You''re probably using the default Document Type Definition (DTD) for ASP.NET which is the XHTML 1.0 Transitional. You may need to change your DTD to an earlier one to get a more consistent look across different browsers. This tutorial is a good place to start

http://aspnetresources.com/articles/doctype.aspx

I had some problems with IE 6 and IE 7 a while back and I found that changing the DTD tag from

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/HTML]

To

[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">[/HTML]

achieved the results I wanted. If not you''ll need to do some more research into the different DTD''s.

I hope this helps,

Dr B


这篇关于控件未正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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