Text layout - strikethrough
If you want to set the strikeout how to do on a web page, this style often seen in the electricity supplier website:
List strikethrough on the above figure can be achieved using the following codes:
.oldPrice{text-decoration:line-through;}
Example:
<!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;} </style> </head> <body> <p><Price:span class="oldPrice">300</span>元 现价:230 元</p> </body> </html>