我正在尝试使用 CSS 从 select
元素中删除样式。例如:
http://jsfiddle.net/HTseX/
无论我尝试什么,元素的边框和文本之间都有额外的填充,主要是在 IE8 中。 Firefox、Chrome 和 IE9 彼此相似,但 IE8 更高。
我猜这是不可能的。我总是尝试在所有浏览器中使用相同的代码,因此我尝试确保我确实需要为 IE8 进行特定编码,或者使用 JS pulldowns。
谢谢。
最佳答案
The select renders slightly differently depending on the browser and operating system in use, and is well known as a troublesome HTML element to style with CSS (because the display is inherited from the operating system, rather than provided by the browser).
关于html - 删除 IE8 中选择元素内的多余填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12751577/