开发者

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

开发者 https://www.devze.com 2023-01-01 21:32 出处:网络
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 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

精彩评论

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