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
精彩评论