久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css怎么給刪除線設置顏色

      方法:首先在父標簽p中嵌入包含文本的span標簽;然后在父標簽p中添加刪除線樣式,并使用color屬性設置文本和刪除線的顏色;最后在span標簽中使用color屬性重新設置文本顏色即可。

      css怎么給刪除線設置顏色

      本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      在css中,可以屬性text-decoration屬性添加文本文字的刪除線效果

      <!DOCTYPE html> <html> 	<head> 		<meta charset="UTF-8"> 		<title>css添加文本文字的刪除線</title> 		<style> 			p{ 				text-decoration:line-through; 			} 		</style> 	</head> 	<body> 		<p>這里有一條刪除線</p> 	</body> </html>

      效果圖:

      css怎么給刪除線設置顏色

      那么如何給刪除線設置顏色?下面來看看示例代碼:

      <!DOCTYPE html> <html> 	<head> 		<meta charset="UTF-8"> 		<title>css添加文本文字的刪除線</title> 		<style> 			p{ 				text-decoration:line-through; 				color: red; 			} 			span{ 				color: black; 			} 		</style> 	</head> 	<body> 		<p><span>這里有一條刪除線</span></p> 	</body> </html>

      效果圖:

      css怎么給刪除線設置顏色

      這樣我們結合text-decoration:line-through;和樣式定義文本字體顏色的樣式,就可以實現(xiàn)css中刪除線與文字顏色不一的樣式效果,是不是很簡單!

      (學習視頻分享:css視頻教程)

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號