请问哪里不对?
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>text-overflow</title> <style type="text/css"> p { width: 500px;font-size:20px; margin: 10px auto; background: #abcdef;} /*此处写代码*/ .p1{text-overflow: ellipsis;} .p2{text-overflow: ellipsis;} </style> </head> <body> <p class="p1">bababadalgharaghtakamminarronnkonnbronntonne,rronntuonnthunn,trovarrhounawnskawntoohoohoordenenthurnuk</p> <p class="p2">bababadalgharaghtakamminarronnkonnbronntonne,rronntuonnthunn,trovarrhounawnskawntoohoohoordenenthurnuk</p> </body> </html>
3
收起
正在回答 回答被采纳积分+1
2回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星