In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
It is believed that many inexperienced people do not know what to do about the use and solution of overflow text text-overflow. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Today, when learning to overflow the text text-overflow, I made a mistake, hereby record.
Text-overflow has two attribute values, clip and ellipsis. Clip indicates that the ellipsis mark is not displayed. ), but a simple trimming; ellipsis represents the display of ellipsis marks (… )
It is important to note that for these two attributes to really work, you need to work with overflow:hidden;white-space:nowrap;.
Overflow:hidden; means that parts beyond the text are not displayed.
White-space:nowrap; stands for forcing text to be displayed on one line.
The example code I wrote:
The code is as follows:
Overflow text text-overflow example
Do not show ellipsis marks, but simple trimming
Show ellipsis marks, not simple trimming
Results:
If overflow:hidden; doesn't write, the result looks like this:
If white-space:nowrap; doesn't write, the result looks like this:
After reading the above, have you mastered the use of overflow text text-overflow and how to solve it? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.