首页 > 设计 > WEB开发 > 正文

文本溢出边界显示为省略号

2019-11-02 18:32:11
字体:
来源:转载
供稿:网友

文本溢出边界显示为省略号


<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style> /*此方法Firefox5.0尚不支持*/ .box{ width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: greenyellow; } </style> </head> <body> <div class="box"> <a href="#">文本溢出边界显示为省略号</a> </div> </body></html>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表