Text wrap: word-wrap, word-break, and white-space,
Synchronize this article to public number: http://mp.weixin.qq.com/s? _ Biz = MzAxMzgwNDU3Mg ==& mid = 401671055 & idx = 1 & sn = b88c986e61708da0027fac035ad36f0f # rd
If you are interested in
CSS newlines: word-wrap & amp; word-break & amp; white-space & amp; word-spacing
Word-wrap:
First of all, the CSS attribute word-wrap has been renamed as overflow-wrap in CSS3, so the semantics is also made to avoid confusion with word-break;
first, Word-wrap use:Grammar: Break-wordvalue Description:1, Normal is the default value, when its value for the normal control of continuous text wrapping (allow the content to open the boundaries of the container, in other words, the content can
Word-wrap:First of all, Word-wrap this CSS property in CSS3 has been renamed to Overflow-wrap, so semantic is also to avoid confusion with word-break;
Reference:
The property was overflow used to specify whether or not the
In the work I encountered a problem, in fact, the function is not complex, that is, there is a textatea tag, the input content, below a display effect, there is a condition is the above input of what format (such as line change and so on), the
Http://bbs.51cto.com/thread-464670-1.html
How
Program All 32-bit applications have 4 GB of process address space, because 32-bit addresses can map up to 4 GB of memory (for friends who are not familiar with the concept of virtual address space,
Three CSS related to text wrapping:
1 white-space
Attribute setting: how to process the blank space in the element.
This attribute declares how to process the blank characters in the element during layout creation.
Possible values:
Normal:
What are these two things? I believe there are still many people who don't know how to write a word-wrap: break-word; word-break: break-all; such a sentence is forced to be disconnected, or because these two things are too talkative and have a
What exactly are Word-wrap and word-break? Why do you have to repeat this problem? Is the question a problem?
We often need to "fix" a cliché "bug", which is the text of the automatic line wrapping problem. In professional terms, this expected
Force No Line breakDiv { white-space:nowrap;}Wrap LineDiv { word-wrap: break-word; word-break: normal; }Force English words to breakDiv { word-break:break-all;}CSS settings do not change careers:Overflow:hidden Hiddenwhite-space: normal defaultpre
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.