Page design in English output wrap _php tutorial

Source: Internet
Author: User
Today has experienced the disgusting page dislocation phenomenon, the reason is very simple, when the page output Chinese characters, if the area width is not enough, will automatically wrap, however, the English letter cannot, that is, you output resembles "aaaaaaaaaaaa" the string character, the page thinks this is a word, cannot break, if in the output, And this area is only 3 characters wide, then the page will be mangled. If you change to "AAA AAA AAA AAA" You can, because the page sees them as four words, it will be able to change the line.

If you want to force a line break in the CSS design just add word-wrap:break-word;/* Force line */CAN

#test {

......;

......;

word-wrap:break-word;/* forced Line-breaking * *

}

http://www.bkjia.com/PHPjc/477938.html www.bkjia.com true http://www.bkjia.com/PHPjc/477938.html techarticle today has experienced the disgusting page dislocation phenomenon, the reason is very simple, when the page output Chinese characters, if the area width is not enough, will automatically wrap, however, the English letter can not, namely ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.