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
1. Dynamic parameters Starting from 2.6.0, you ca...
Table of contents 1. Preparation 2. Introduction ...
Table of contents Preface Component Introduction ...
The /partition utilization of a server in IDC is ...
Enter Alibaba vector icon library Alibaba Vector ...
How Nginx works Nginx consists of a core and modu...
Table of contents background Inspiration comes fr...
1. Create a Docker network docker network create ...
Install using the MSI installation package Downlo...
/***************** * proc file system************...
mysql 5.6.35 winx64 free installation version con...
1. Overview The so-called life cycle function is ...
First, clarify a few concepts: JDBC: Java databas...
1. Avoid declaring the page as XML type . The pag...
background Solving browser compatibility issues i...