How to automatically set the size of a drop-down list?
问题 I'm trying to write a script in Greasemonkey that will automatically set the size of Drop-down lists (there can be more than one...) on the number of selection options, but with my limited JavaScript knowledge I don't really know how to do this. Example of subject: <select name="z_pos_id"> <option value="2463">Option A</option> <option value="2609">Option B</option> <option value="3013">Option C</option> </select> <select name="z_pos_id"> <option value="140">Option AA</option> <option value=