Use CSS to wrap long strings of English characters.

Source: Internet
Author: User

In a cell, the Chinese character wraps automatically if it exceeds the width of the cell. But the strange thing is, if it is all in English, no matter how much you set the TD width, English characters will not automatically wrap, will only be extended. If you do English site, dynamic output content, this will be troublesome.


Fortunately there is a simple way to solve: is to use CSS. Just use: Word-break:break-all is OK.





For example:





<table style= "table-layout:fixed" >


<tr>


<td width= "style=" Word-break:break-all ">mistletoe also known throughout history as the Golden Bough s  Everal different legends associated with its beginning and its meaning.





Starting back as far as the Celtic Druids can find more than one story concerning the mystical mistletoe. One such story is their belief this plant held the soul of the host tree, which was the "Holy Oak". During a ceremony, the Druid priests would harvest the mistletoe with a golden sickle to ensure the mistletoe never D the ground, as it would lose its magical powers. The powers would quickly is absorbed to the Earth. Once the mistletoe is harvested, the priests would have the branches out to the people for them to use against all kinds of evils.





in England, mistletoe on one time is placed over the doorways for good luck. They believed that is happiness could pass underneath the mistletoe, therefore, enemies, would hug and seal their  L Intentions with a kiss of friendship.





all by <a href=http://www.qpsh.com>www.qpsh.com</a>





The ancient Norse people have a wonderful legend on the centered. In their legend, the god Odin and his wife Frigga had a son by the name of Balder. Frigga loved her son very dearly.  She took steps to ensure that nothing would ever harm him by way of the Earth, fire, water, or air.





the mistletoe did not fit into any of this categories, so a evil spirit by the name of Loki created a arrow out o F Mistletoe and gave it to Balder ' s brother, Holder. Holder is blind and Loki held onto his hand and shot in the Balder with the heart arrow. Balder died.





from this moment, the legend are told differently in various stories. One is this balder is brought to life. In another one, he had a Viking ' s funeral and is sent to the Otherworld on a burning ship.  He is to remain there until it is time for him to the new era.





From this day, forward, Frigga stated the mistletoe would never harm anyone again and made it a symbol of love and made th E promise to bestow a kiss upon the everyone who passed beneath it.


</td>


</tr>


</table>

Related Article

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.