看起来像是微软的bug,大家帮帮忙,看能不能解决
<form>
<input id= "File1 " type= "file " UNSELECTABLE=on /> <input id= "Submit1 " type= "submit " value= "submit " />
</form>
设置了UNSELECTABLE=on 后,文件域不能用手工输入,而且点击浏览还能弹出窗口。
可是有一个问题,就是选中这个文件域以后用中文输入法可以输入文字,不在控件里,而是在这个控件的前面或者是后面,很奇怪,我觉得好像是ie的bug,大家给个看法,看看能不能用其他方式解决这个问题
------解决方案--------------------是在IE里吗? 不会啊
------解决方案--------------------确实比较怪,哈
------解决方案--------------------非标准的东西,只有让MS自己解释了...
------解决方案--------------------俺用的遨游。字在上面,真好玩。
------解决方案--------------------不清楚。。我这也有,
时有时没...
------解决方案--------------------发现的bug比较怪异,哈哈
------解决方案--------------------刚试了一下,果然是真的!!
不过,要双击文本框才能输入啊,而且是在文本框的左侧。
Unselectable=on 的目的到底是什么呢?
------解决方案--------------------用FF,字在框里,真不好玩...
------解决方案--------------------Specifies that an element cannot be selected.
Syntax
HTML <ELEMENT UNSELECTABLE=bUnselectable ... >
Scripting N/A
Possible Values
bUnselectable Specifies whether an element is prohibited from being selected.off Default. Permits selection of the element.
on Prohibits selection of the element.
Remarks
Note Setting the UNSELECTABLE attribute to off does not ensure that the element is selectable. One example is an HTML Application (HTA) with the SELECTION attribute set to no. Elements in the body of the HTA cannot be selected, whether the element 's UNSELECTABLE attribute is set to off or not.
Clicking on an element with the UNSELECTABLE attribute set to on does not destroy the current selection if one exists.
An element with the UNSELECTABLE attribute set to on can be included in a selection that starts somewhere outside the element.
The UNSELECTABLE attribute is implemented as an expando. Setting the expando property of the document object to false precludes the functionality of all expandos.
Example
This example shows that the UNSELECTABLE attribute is not inherited by child objects. Text in the TEXTAREA element can be selected and modified, but the text in the parent SPAN element cannot be selected.
SHOWExample
<P>
<SPAN ID= "oSpan " UNSELECTABLE= "on " > This text cannot be selected.
<P>
<TEXTAREA WRAP= "PHYSICAL " ROWS= "5 " STYLE= "font-weight: bold; " ID= "oTextarea ">
This text can be selected and overwritten.
</TEXTAREA>
</P>
This text closes the SPAN and cannot be selected either.
</SPAN>
</P>
Standards Information
There is no public standard that applies to this attribute.
------解决方案--------------------我知道,这是MS悬赏$100,000通缉的BUG.楼主发财罗
------解决方案--------------------哈哈
我是中文哪里都可以打的
包括file的文本域里面
先选中 <input type= "file ".../> 控件(只要选中包括它就可以)