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;
}
这似乎在不同浏览器的高度/宽度上产生了一些变化。关于在浏览器中获得像素完美高度/宽度的任何建议?渐变似乎很好,如果它在旧浏览器上退化为纯色,我没问题。