怎么给删除线上颜色
这个怎么设置
这个怎么设置
2016-07-17
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>删除样式</title>
<style type="text/css">
.oldPrice{
text-decoration:line-through;
color:blue;
}
.oldPrice>label{
color:black;
}
</style>
</head>
<body>
<p>原价:<span class="oldPrice"><label>300</label></span>元 现价:230 元</p>
</body>
</html>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>删除样式</title> <style type="text/css"> .oldPrice{text-decoration:line-through;color:red;} #s{color:blue;} </style> </head> <body> <p>原价:<span class="oldPrice"><span id="s">300</span></span>元 现价:230 元</p> </body> </html>
这是我想的一个笨办法,有啥更好的求分享。
举报