开发者

Dropdownlist in IE9 and FF expands past monitor

I add a simple select element (or asp.net DropDownList), with 2 items, and one is pretty long. The width is set at some value that's smaller than the item, and in IE9 and FF, the list expands when you open it. Nice. But when the select is near border of monitor, the items just go bye bye, including a scroll bar if one would exist. Functionality is all fine, but display is just cut off.

<div>
        <table style="width:1200px">
            <tr>
                <td align="right">
                    <select style="width:100px">
                        <option>Item one is very long and it goes for quite a long time</option>
                        <option>Shorter item</option>
                    开发者_如何学Go</select>
                </td>
            </tr>
        </table>
    </div>

Dropdownlist in IE9 and FF expands past monitor

Anyone ever come across this? Found nothing via google. We used to support only IE7 and 8, which didn't expand the list, it would just cut off the items at 100px in this example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜