久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css怎么設(shè)置超出顯示省略號(hào)

      css設(shè)置超出顯示省略號(hào)的方法:1、使用“overflow:hidden;”語(yǔ)句把超出的部分隱藏起來(lái);2、使用“text-overflow:ellipsis;”語(yǔ)句在文本溢出包含元素時(shí),顯示省略符號(hào)來(lái)代表被隱藏的部分。

      css怎么設(shè)置超出顯示省略號(hào)

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

      css設(shè)置超出顯示省略號(hào)可分兩種情況

      • 單行文本溢出顯示省略號(hào)…

      • 多行文本溢出顯示省略號(hào)…

      但使用的核心代碼是一樣的:需要先使用“overflow:hidden;”來(lái)把超出的部分隱藏,然后使用“text-overflow:ellipsis;”當(dāng)文本超出時(shí)顯示為省略號(hào)。

      • overflow:hidden;不顯示超過(guò)對(duì)象尺寸的內(nèi)容,就是把超出的部分隱藏了;

      • text-overflow:ellipsis;當(dāng)文本對(duì)象溢出是顯示…,當(dāng)然也可是設(shè)置屬性為clip不顯示點(diǎn)點(diǎn)點(diǎn);

      實(shí)現(xiàn)代碼

      1、單行文本溢出顯示省略號(hào)…

      <!DOCTYPE html> <html> 	<head> 		<meta charset="UTF-8"> 		<style> 			*{margin: 0px;padding: 0px;} 			.box{width: 300px;height: 500px;margin: 50px auto;} 			.overflow{ 				width:220px; 				overflow:hidden; 				white-space: nowrap; 				text-overflow: ellipsis; 				-o-text-overflow:ellipsis; 			} 		</style> 	</head> 	<body> 		<div class="box"> 			<p> 				css單行文本超出長(zhǎng)度顯示省略號(hào) 			</p> 			<p class="overflow"> 				css單行文本超出長(zhǎng)度顯示省略號(hào) 			</p> 		</div> 	</body> </html>

      效果圖:

      css怎么設(shè)置超出顯示省略號(hào)

      2、多行文本溢出顯示省略號(hào)…

      <!DOCTYPE html> <html> 	<head> 		<meta charset="UTF-8"> 		<style> 			*{margin: 0px;padding: 0px;} 			.box{ 				width: 280px; 				height: 62px; 				margin: 50px auto; 				overflow: hidden; 				text-overflow: ellipsis; 				display: -webkit-box; 				-webkit-line-clamp: 3; 				-webkit-box-orient: vertical; 			} 		</style>	 	</head> 	<body> 		<div class="box"> 			css多行文本超出長(zhǎng)度顯示省略號(hào),css多行文本超出長(zhǎng)度顯示省略號(hào), 			css多行文本超出長(zhǎng)度顯示省略號(hào),css多行文本超出長(zhǎng)度顯示省略號(hào)。 		</div> 	</body> </html>

      css怎么設(shè)置超出顯示省略號(hào)

      (學(xué)習(xí)視頻分享:css視頻教程)

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