Css:波浪线(书名号)非图片式实现

/*** 书名下面的波浪线 ****/
.titles,.shuming1{
	position: relative;
	white-space:nowrap;
}
.titles:before,.shuming1:before {
	content: '';
	position: absolute;
	bottom: -5px;
	height: 4px;
	left:0.3rem;
	right:0.3rem;
    background: -webkit-radial-gradient(circle, transparent, transparent 2px, orange 3px, orange 4px, transparent 4px, transparent);
    background: -moz-radial-gradient(circle, transparent, transparent 2px, orange 3px, orange 4px, transparent 4px, transparent);
    background: radial-gradient(circle, transparent, transparent 2px, #dc3912 3px, #dc3912 4px, transparent 4px, transparent);
    background-size: 7px 8px;
/*    background: linear-gradient(135deg, transparent, transparent 45%, #ff1100, transparent 55%, transparent 100%),linear-gradient(45deg, transparent, transparent 45%, #ff3100, transparent 55%, transparent 100%);
    background-size: 9px 9px;
    background-repeat: repeat-x, repeat-x;*/
}

代码来自東里書齋

1 Like