IE option title not working above selected

江枫思渺然 提交于 2019-12-11 04:03:59

问题


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.



来源:https://stackoverflow.com/questions/33571662/ie-option-title-not-working-above-selected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!