IE option title not working above selected

2019-07-19 03:21发布

问题:

IE11 weirdness - options with title attribute only display the tip below the selected option? In this example hover over options b and c and tip shows, but not for a. Select c and b stops showing the tip too???

<select name="sel">
    <option value=""></option>
    <option title="already assigned" value="a" style="background-color:gray;">a</option>
    <option title="orig selected" value="b" selected>b</option>
    <option title="already assigned" value="c" style="background-color:gray;">c</option>
</select>

So how do I induce IE11 to show the title tips above the selected option?

回答1:

There does appear to be an issue with IE 11 on earlier versions of Windows. I checked Internet Explorer 11 on Windows 10, and found that tooltips were shown for all values, regardless which one was selected.

I'll file a bug for our team to consider the issue on older versions of Windows. Beyond this, we (the designers) have no control over where/whether the title window is shown. This functionality exists to assist the visually impaired in using the web, and as such the layout and placement is handled by the software itself, rather than the designer.