聘我网

新概念招聘3.0

html中id最长能有多长?

vote up0vote downstar

html文档提到:

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

但似乎没说到id本身能够有多长?

 

1 个答复

vote up0vote downcheck

刚刚测试过,含有1M字节的id在Chrome1, FF3, IE7, Konqueror3, Opera9, Safari3都正常work。

初步怀疑更长的id应该不容易记忆。

链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.