body #wrapper .button {
background: #00b1ff; /* Old browsers */
background: -moz-linear-gradient(top, #00b1ff 0%, #006aff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b1ff), color-stop(100%,#006aff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #00b1ff 0%,#006aff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #00b1ff 0%,#006aff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #00b1ff 0%,#006aff 100%); /* IE10+ */
background: linear-gradient(top, #00b1ff 0%,#006aff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00b1ff', endColorstr='#006aff',GradientType=0); /* IE6-9 */
height: 45px;
width: 118px;
color: white;
font-size: 20px;
font-weight: bold;
margin-left: 10px;
text-align: center;
text-shadow: 0px -1px 0px #223847;
cursor: pointer;
}
这似乎在不同浏览器之间创建了一些高度/宽度的变化。任何建议让跨越浏览器的像素完美的高度/宽度?渐变似乎很好,如果它在旧版浏览器上降级为纯色,我很好。跨浏览器输入按钮的高度和宽度
您使用重置CSS吗?如果不是,你可能想使用一个。 – Oded
是的,我使用重置CSS,如果不是精确到Meyerweb非常相似。我也试过那个,没有运气。 – Lukasz
我可以确认大多数重置不会解决这个问题。我希望有人在提出建议之前测试一个reset.css对此有一定的影响。 – Frug