346774-1b.html (364B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <form name="theForm"> 5 <select name="theSelect" style="width: auto"> 6 <option>xxxxxxxxxx</option> 7 </select> 8 </form> 9 <script> 10 // Flush reflow 11 document.body.offsetWidth; 12 document.theForm.theSelect.style.width='2em'; 13 document.body.offsetWidth; 14 document.theForm.theSelect.style.width='auto'; 15 </script> 16 </body> 17 </html> 18 19