1. First, understand the overflow-wrap attribute The CSS Since the Until one day The formal syntax of
2. What is the use of anywhere Before we explain the function of the technical attribute value Hard line breaks insert actual line breaks at the break points of the text, while soft line breaks actually remain on the same line, but appear to be divided into several lines. For example, The differences and similarities between anywhere and break-word In its normal state, To put it in layman's terms, if consecutive English characters can be separated without breaking, then do so. If this is not possible, then break them. Therefore, compared to break-all, there may be some blank space left. As shown in the following figure: For details, please refer to this article: "The difference between word-break:break-all and word-wrap:break-word". Let's talk about the different supports. The difference between For example, the following example: <p class="anywhere">I'm zhangxinxu.</p> <p class="break-word">I'm zhangxinxu.</p> p { display: inline-block; width: min-content; padding: 10px; border: solid deepskyblue; vertical-align: top; } .anywhere { overflow-wrap: anywhere; } .break-word { overflow-wrap: break-word; } The result in the Chrome browser is as follows: It can be seen that the minimum width of the element declared with As you can see, 3. Compatibility and Conclusion Therefore, it is not suitable for use in actual projects at present, so you just need to understand it. Moreover, this attribute is not used in regular text typesetting. Even if you know the value of this attribute, you will not think of using it. It is destined to be a forgotten CSS feature in the future. That’s all I have to say. I’ll give you a brief introduction to a new feature. Summarize This is the end of this article about the usage of the new CSS overflow-wrap property value anywhere. For more related CSS overflow-wrap new property value anywhere content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope that everyone will support 123WORDPRESS.COM in the future! |
<<: MySQL8.0.18 configuration of multiple masters and one slave
>>: Detailed explanation of custom events of Vue components
I think the commands I use most often are: Choice...
Today, when I was installing CentOS6.2, I couldn&...
Table of contents Add code to the Tree item; 1. S...
Let's make a simple 3D Rubik's Cube today...
<br />In HTML language, you can automaticall...
Table of contents 1. Basic principles 2. Specific...
Solution function mergeImgs(list) { const imgDom ...
I have been using the CentOS purchased by Alibaba...
Result:Implementation Code html <link href=...
Adding the extra_hosts keyword in docker-compose....
definition Calcite can unify Sql by parsing Sql i...
This article uses a specific example to introduce...
introduction Sometimes, if there are a large numb...
First: <abbr> or <acronym> These two s...
Table of contents Overview console.log console.in...