html - 删除 IE8 中选择元素内的多余填充

标签 html css internet-explorer

我正在尝试使用 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).

Reference

关于html - 删除 IE8 中选择元素内的多余填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12751577/

相关文章:

jquery - 背景图像如何适合单元格表(允许扭曲)

html - 数据:image/png;base64 mean?是什么意思

javascript - 旋转木马图像没有响应

javascript - 传单tilelayer显示图像未找到丢失瓷砖的图标

css - 响应式布局在 IE 中困惑

Firefox 错误消息的 HTML 源代码(无法建立此连接错误显示)

html - CSS - 可以重排列中的复选框吗?

html - 为什么不同大小的文本有不同的对齐方式

html - 我的页脚消失了

jquery 数据表修复了在 IE 中不对齐的列