The following Code work in FF but not in IE9:
// turn on the image file upload field and its label
document.getElementById( itemImageId ).disabled = false;
document.getElementById( labelForImageUploadID ).style.color = "black";
这里是带有标签和文档投入的超文本:
<label for="itemImageId" style="color: silver" id="labelForImageUploadID">Item image
(select to change the item s current image)</label>
<input type="file" size="100px" id="itemImageId" disabled="disabled"
name="theFileUpload"></input>
** 本文件迟交。 上述标签和上载标签在div内封 我补充说,这样你就可以看到如何处理烟火点。 The handleRowClick() function has the above Javascript Code that tries to consider the text Black:
<div class="itemlistRowContainer" id="topmostDiv_ID" onclick="handleRowClick(this);"
onmouseover="handleMouseOver(this);" onmouseout="handleMouseOut(this);"
ondblclick="handleDblClick(this);">
因此,当这一标签首次出现在网页上时,其颜色是正确的——由于直线颜色,它是一种银。
Then the Javascript code above executes on a mouse click.
Firefox印法将标签文本改为黑体,使文档上载控制成为可能。
然而,在IE9中,贴上标签的文字保持灰色。
IE9不支持e.color = “somecolor”,以动态方式控制的颜色?
I ve looked at a few other posts, and the only quirk I found was that if you have enabling/disabling happening dynamically, to make sure the tag is ENABLED in IE9 before you try to change its color.
That s not a factor here as the code never disables the label tag.
It s not just this one label tag either -- all the label tags on the page fail to turn black but ONLY in IE9 -- in FF everything works.
Is there a gotcha or a trick I m missing?