开发者

Select box hides the lengthy text as its option when displayed in IE whereas it is displayed perfect with Firefox

Select box hides the lengthy text as its option when displayed in IE whereas it is displayed perfect with Firefox, How can I 开发者_JS百科rectify this issue...

<select name="product" id="product" style="width:135px;" onChange="javascript:refill();bannersize();">
    <option value="">Select Product</option>
    <?php while($result=mysql_fetch_object($sql_query))
    {
    ?>
    <option value="<?php echo $result->categories_id;?>"><?php echo $result->categories_name;?></option>
    <?php 
    }
    ?>
</select>


See this question, the answer uses the YUI library: Dropdownlist width in IE

This page also has a nice solution: http://www.dougboude.com/blog/1/2008/05/Viewing-Option-Text-in-IE7-thats-Wider-than-the-Select-List.cfm

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜