@charset "utf-8"; /* 取消浮动,转块级元素 */ .clear-both::before,.clear-both::after{ content: ''; display: block; clear: both; } .grad{ background: -webkit-linear-gradient(left, #ff5c5c , #ff8f8f); /* Safari 5.1 - 6.0 */ background: -o-linear-gradient(right, #ff5c5c, #ff8f8f); /* Opera 11.1 - 12.0 */ background: -moz-linear-gradient(right, #ff5c5c, #ff8f8f); /* Firefox 3.6 - 15 */ background: linear-gradient(to right, #ff5c5c , #ff8f8f); /* 标准的语法 */ }