1. firefox不识别htc
参照例子:http://www.quirksmode.org/js/events_properties.html
http://dean.edwards.name/my/examples/moz-behaviors/
http://www.smelzo.it/XHTC/index.html
moz-behaviors,使用bindings.xml和moz-behaviors.xml,将这两个文件都放在css目录下。参照例子进行修改。记住有函数需要使用//<![CDATA[ 和 //]]> 括起来。
2. 点击左边树状结构的链接,IE弹出一个新窗口,不能在指定框架的标签页中弹出。
方法:去掉文件开头的for=”document”
3. JS的有些脚本,在IE下可以用,但是在firefox中无法显示或执行
(1) 不能用parent.myFrame.cols="220,23,*"; 改用 parent.document.getElementById('myFrame').setAttribute("cols", "220,23,*"); 其中myFrame是parent当中定义的frameset
(2)"<script language=/"JavaScript/" type=/"text/jscript/">/n" 改成"<script language=/"JavaScript/">/n"。
(3) 控件在页面上无法执行。采用的方法,为每个控件在页面上设置一个表格单元。
4. C#和js
http://www.pspmyspace.com/omnia/2008/09/how-to-hard-res.html
唯一可能发生关联的地方是用c#的registerclientscripts