替代 CSS3 < hr > 简单样式的标签,如果这不起作用,则在 hr 样式下方有一个标准 < hr > 标签的子语句或 else 语句,如下代码所示。
有带有淡出边缘的简单样式的 CSS3 < hr > 标签,请参阅链接 http://css-tricks.com/simple-styles-for-horizontal-rules。
如果这种带有淡出边缘的 <hr> 简单样式不起作用,而改为使用标准 <hr> 扭结,是否有后备方案?我正在使用jQuery1.6.4 请指教?
hr { border: 0; height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
width:100%;
}
.hr { border: 0; height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}