Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
输入按钮的文本(值)越长,左右填充似乎越宽(IE)。显式 CSS 填充似乎没有效果。有人对此有破解吗?
是的,试试这个(PS 这个错误在 IE8 中已修复)
padding:1px 4px 1px 4px;/*set to your preferences*/ /*Make IE render reasonably sized buttons*/ overflow:visible; width:auto;
(请注意,长 30-50 个字符的按钮会再次开始退化,但它们并不常见)