在新聞 [url]http://www.iteye.com/news/3832-goodbye-alert-the-use-of-new-information-pop-up-box[/url] 發布之后,有人反映在IE6+下會有問題,我做了下測試,在此說明下
在IE6+/IE7下,需要在HTML中寫入以下代碼,否則就會有響應問題,當然在Firefox 2+ 下可以不用加可運行正常:
<!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">
<html>
<head>
<script type="text/javascript" src="jsDebug/blackbird.js"></script>
<link type="text/css" rel="Stylesheet" href="jsDebug/blackbird.css" />
</head>
<body>
...
<body>
</html>
Blackbird官方站:
[url]http://www.gscottolson.com/blackbirdjs/[/url]
在IE6+/IE7下,需要在HTML中寫入以下代碼,否則就會有響應問題,當然在Firefox 2+ 下可以不用加可運行正常:
<!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">
<html>
<head>
<script type="text/javascript" src="jsDebug/blackbird.js"></script>
<link type="text/css" rel="Stylesheet" href="jsDebug/blackbird.css" />
</head>
<body>
...
<body>
</html>
Blackbird官方站:
[url]http://www.gscottolson.com/blackbirdjs/[/url]