我一直在尝试为我的网站创建按钮。它在除了IE9之外的所有东西都可以正常工作,我在盒子的角落里有黑色边缘。我使用F12来查找代码的哪一部分会弄乱一切,看起来“filter:progid ...”就是这个原因,但话说再说一次,如果没有它,它看起来会更糟。我读了无数的网站,但没有找到任何解决方案。如果有人知道如何解决 - 请帮忙! :)
Mozilla vs IE - 正在发生的事情的形象。 Mozilla位居榜首,IE底部。
.button {font: bold;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #000000), color-stop(1, #000000));
background:-moz-linear-gradient(top, #000000 5%, #000000 100%);
background:-webkit-linear-gradient(top, #000000 5%, #000000 100%);
background:-o-linear-gradient(top, #000000 5%, #000000 100%);
background:-ms-linear-gradient(top, #000000 5%, #000000 100%);
background:linear-gradient(to bottom, #000000 5%, #000000 100%);
overflow:auto;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000',GradientType=0);
-moz-border-radius:42px;
-webkit-border-radius:42px;
border-radius:42px;
color: #BDBDBD;
padding:3px 55px;
width: 150px;
}