免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: gydoesit
打印 上一主题 下一主题

[表单] 我要被IE搞疯了,readonly在ie中如何设置 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-12-09 12:01 |只看该作者
老大,你看的是html4.0的参考,这个我也看了的.但那是html不区分大小写,的确,在<input>中,你写成READonly都行.
但是W3C DOM没说不区分大小写呀,当然,我不知道,只是昨天才看了下.请知道的告诉一下.

http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html

interface HTMLInputElement : HTMLElement {
           attribute DOMString       defaultValue;
           attribute boolean         defaultChecked;
  readonly attribute HTMLFormElement form;
           attribute DOMString       accept;
           attribute DOMString       accessKey;
           attribute DOMString       align;
           attribute DOMString       alt;
           attribute boolean         checked;
           attribute boolean         disabled;
           attribute long            maxLength;
           attribute DOMString       name;
           attribute boolean         readOnly;
  // Modified in DOM Level 2:
           attribute unsigned long   size;
           attribute DOMString       src;
           attribute long            tabIndex;
  // Modified in DOM Level 2:
           attribute DOMString       type;
           attribute DOMString       useMap;
           attribute DOMString       value;
  void               blur();
  void               focus();
  void               select();
  void               click();
};



不知道dom究竟分不分大小写,还是各浏览器实现不同.

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
12 [报告]
发表于 2005-12-09 21:36 |只看该作者
在这网址里面找到了答案:
1.2.1.1. Properties and Methods

The property or method name starts with the initial keyword in lowercase, and each subsequent word starts with a capital letter. For example, a property that returns document meta information such as the date the file was created might be named "fileDateCreated". In the ECMAScript binding, properties are exposed as properties of a given object. In Java, properties are exposed with get and set methods.


他需要取分大小写的,标准的属性和方法的命名规则是最开始单词的首字母小写,然后后面的单词首字母大写.

w3c这些东西真隐晦啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP