日期:2014-05-17 浏览次数:20747 次
<style> .gradients { text-align: center; width: 400px; line-height: 160px; background-image: -moz-linear-gradient(top, #BDD738, #000); background-image: -webkit-gradient(linear, left top, left bottom, from(#BDD738), to(#000)); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#BDD738,endColorstr=#000); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#BDD738,endColorstr=#000)"; } </style> </head> <body> <form id="form1" runat="server" > <div class="gradients" style="margin: auto; border: 1px solid #000;"> xxxxxxxxxxxxxxxx </div> </form> </body>