Content Summary: This article enumerated the compatible IE and FF the line-wrapping CSS recommendation style, introduced in detail the word-wrap and the word-break difference.
Line break CSS recommended style for IE and FF
The best way is
Automatic line-wrapping problem, normal character line is more reasonable, and continuous digital and English characters are often the container brace big, it is a headache, the following is how CSS to achieve change
Method of the line
For
Automatic line-wrapping problem, normal character line is more reasonable, and continuous digital and English characters are often the container braces, it is a headache, the following is how CSS implementation of the method of line wrapping for
: Network Disk DownloadContent Introduction· · · · · ·This book starts from the front-end developer's demand, takes "the flow" as the clue, from the structure, the content to the beautification adornment and so on aspect, comprehensively and
When I was working as an English version of the enterprise site, due to insufficient space, the entire word had a line break, resulting in a large gap between words. For example:
Use CSS attributesWord-break: Break-all;Effect: for example:
First, CSS common selector"Naming rules for selectors"* 1, can only have alphanumeric underline composition, cannot have any other characters* 2, cannot start with a number"Universal Selector"* 1, wording:*{}* 2. Select all the tabs in the page* 3,
Automatic line-wrapping problem, normal character line is more reasonable, and continuous digital and English characters are often the container braces, it is a headache, the following is how CSS implementation of the method of line wrapping
For
For block-level elements such as Div,p
line breaks for normal text (Asian and non-Asian text) elements have a default white-space:normal, which wraps after the defined width:
Html
Normal text wrap (Asian and non-Asian) elements have the default
This writing is today's study to the attribute, altogether 20.The property is more, but it will be used, and it will be remembered when it is used, in order to serve the purpose that we need.Style properties1, borderCSS border properties allow you
CSS Text properties Define the appearance of text. Text properties allow you to change the color of text, the spacing of characters, align text, decorate and indent text, and so on. Reference: http://www.w3school.com.cn/css/css_text.asp
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.