价格横线划掉

价格横线划掉效果,用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>
发布了64 篇原创文章 · 获赞 0 · 访问量 1624

猜你喜欢

转载自blog.csdn.net/lucky_girl_girl/article/details/104552743