Transitional Doctype带来了一些JavaScript功能! [英] Transitional Doctype Takes Some JavaScript Functionality Away!

查看:58
本文介绍了Transitional Doctype带来了一些JavaScript功能!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯...我曾经有一个函数在

mousemove上拖动一些div元素。之后我添加:


<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://

www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


它停止拖动div仅在Firefox中的元素(IE7很好)。谁可以解释?b $ b解释?什么文档类型用于AJAX网站?

Hm... I used to have a function which drags some div element on
mousemove. After I added:

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

it stopped dragging div element in Firefox only (IE7 is fine). Who can
explain? What doctype to use for AJAX website?

推荐答案

vu ****** @ gmail.com 在2007年4月2日上午10:35发表以下内容:
vu******@gmail.com said the following on 4/2/2007 10:35 AM:

Hm。 ..我曾经有一个函数在

mousemove上拖动一些div元素。之后我添加:


<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://

www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hm... I used to have a function which drags some div element on
mousemove. After I added:

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



你为什么要告诉IE使用它没有的文件类型

的线索是什么?

Why are you telling IE to use a document type that it doesn''t have a
clue what it is?


它只停止在Firefox中拖动div元素(IE7很好)。
it stopped dragging div element in Firefox only (IE7 is fine).



只是因为IE处于怪癖模式。

Only because IE is in quirks mode.


谁能解释一下?用于AJAX网站的doctype是什么?
Who can explain? What doctype to use for AJAX website?



它与AJAX无关。它与文档本身

和浏览器有关。使用HTML4.01 Strict。

-

Randy

机会有利于准备好的心灵

comp.lang。 javascript常见问题解答 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com / bestpractices /


4月2日下午12:12,Randy Webb< HikksNotAtH ... @ aol.comwrote:
On Apr 2, 12:12 pm, Randy Webb <HikksNotAtH...@aol.comwrote:

vunet ... @ gmail.com在2007年4月2日上午10:35发表以下内容:
vunet...@gmail.com said the following on 4/2/2007 10:35 AM:

Hm。 ..我曾经有一个函数在

mousemove上拖动一些div元素。我添加后:
Hm... I used to have a function which drags some div element on
mousemove. After I added:


<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://

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



你为什么要告诉IE使用它没有的文件类型

的线索是什么?


Why are you telling IE to use a document type that it doesn''t have a
clue what it is?


它只停止在Firefox中拖动div元素(IE7很好)。
it stopped dragging div element in Firefox only (IE7 is fine).



只是因为IE处于怪癖模式。


Only because IE is in quirks mode.


谁可以解释一下?用于AJAX网站的doctype是什么?
Who can explain? What doctype to use for AJAX website?



它与AJAX无关。它与文档本身

和浏览器有关。使用HTML4.01严格。


-

兰迪

机会有利于准备好的心灵

comp.lang.javascript常见问题-http://jibbering.com/faq/index.html

Javascript最佳实践-http://www.JavascriptToolbox.com/bestpractices/


It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/



我试过,但只有/loose.dtd似乎有效。为什么?

I tried, but only /loose.dtd seems to work. WHy?


vu ****** @ gmail .com 在2007年4月2日下午2:51发表以下内容:
vu******@gmail.com said the following on 4/2/2007 2:51 PM:

4月2日下午12:12,Randy Webb< HikksNotAtH ... @ aol.comwrote:
On Apr 2, 12:12 pm, Randy Webb <HikksNotAtH...@aol.comwrote:

> vunet ... @ gmail.com在2007年4月2日上午10:35发表以下内容:
>vunet...@gmail.com said the following on 4/2/2007 10:35 AM:

>> Hm ...我曾经有一个函数在鼠标移动中拖动一些div元素。之后我添加了:
<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>Hm... I used to have a function which drags some div element on
mousemove. After I added:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


为什么你要告诉IE使用它没有的文件类型?它是什么?

Why are you telling IE to use a document type that it doesn''t have a
clue what it is?


>>它仅停止在Firefox中拖动div元素(IE7很好)。
>>it stopped dragging div element in Firefox only (IE7 is fine).


只因为IE处于怪癖模式。

Only because IE is in quirks mode.


>>谁能解释一下?用于AJAX网站的doctype是什么?
>>Who can explain? What doctype to use for AJAX website?


它与AJAX无关。它与文档本身和浏览器有关。使用HTML4.01严格。

It has nothing to do with "AJAX". It has to do with the document itself
and the browser. Use HTML4.01 Strict.



我试过,但只有/loose.dtd似乎有效。为什么?

I tried, but only /loose.dtd seems to work. WHy?



当我按下按钮时,我的立体声无效。为什么?


我的观点是,你无法诊断出你看不到的东西。当您将浏览器置于严格的

模式导致其失败时,页面中可能会出现

。没有看到代码,就不可能回答你。


如何在不查看标题的情况下识别Google网上论坛海报?


-

兰迪

机会有利于预备心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/


这篇关于Transitional Doctype带来了一些JavaScript功能!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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