Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> p{ border:1px solid black; width:120px; white-space:nowrap; overflow:hidden; } .text1{ text-overflow:clip; } .text2{ text-overflow:ellipsis; } </style> </head> <body> <p class="text1">Tài liệu học lập trình web</p> <p class="text2">Tài liệu học lập trình web</p> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> p{ border:1px solid black; width:120px; white-space:nowrap; overflow:hidden; } .text1{ text-overflow:clip; } .text2{ text-overflow:ellipsis; } </style> </head> <body> <p class="text1">Tài liệu học lập trình web</p> <p class="text2">Tài liệu học lập trình web</p> </body> </html>