<style> select{height:33px;} </style>
这个貌似不管用,除了用js来模拟实现,纯样式修改的方法有吗?
要是兼容低版本浏览器的话,最好用插件,select在IE7,IE8下样式跟其他浏览器下显示的样式差别很大,这个插件还不错,https://github.com/shenmiweiyi/selectlist
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>123123</title> <style> select{height:33px;font-size:33px;} </style> </head> <body> <select><option>asdf</option></select> </body> </html>
亲,明白了吗