è¶
åºæå®ææ¬ä»¥çç¥å·æ¾ç¤ºææï¼ç¨cssç"text-overflow:ellipsis;"å®ç°
text-overflow:ellipsis; 溢åºçé¨åç¨ çç¥å· 表示ã
<!DOCTYPE html>
<html>
<head>
<style>
div.test
{
white-space:nowrap;
width:123px;
overflow:hidden;
border:1px solid #000000;
text-overflow:ellipsis;
}
</style>
</head>
<body>
<p>è¿ä¸ª div ä½¿ç¨ "text-overflow:ellipsis" ï¼</p>
<div class="test">
This is some long text that will not fit in the box
</div>
</body>
</html>
å¨divåä¸è¦è®¾ç½®å®½åº¦ï¼"overflow:hidden;"è¦è·"text-overflow:ellipsis;"使ç¨æè¡