我用下面的CSS:W3C CSS验证: “解析错误}”
.tm-navbar {
position: relative;
z-index: 9999;
}
@media (min-width: 768px) {
.tm-navbar {
background: -moz-linear-gradient(top, rgba(33, 33, 33, 0.25) 0%, rgba(33, 33, 33, 0) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(33, 33, 33, 0.25) 0%, rgba(33, 33, 33, 0) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(33, 33, 33, 0.25) 0%, rgba(33, 33, 33, 0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40212121', endColorstr='#00212121', GradientType=0); /* IE6-9 */
}
}
@media (max-width: 767px) {
.tm-navbar {
position: relative;
z-index: 9999;
background-color: #212121!important;
}
}
Acording到W3C验证,它有13行错误:
线13 .tm-导航栏解析错误}
请指出线13 –
看来此行是给错误:过滤器:进程id:DXImageTransform.Microsoft.gradient(startColorstr = '#40212121',endColorstr = '#00212121',GradientType = 0) ;/* IE6-9 */ –