价格横线划掉效果,用text-decoration:line-through;
在这里插入代码片
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<style>
div{
width:100px;
height:30px;
}
div span{
color:red;
text-decoration:line-through;
}
</style>
<body>
<div><span>¥139</span></div>
</body>
</html>