2013-04-09 36 views
1

我的表中的文本似乎舒展4000 + PX:如何在表格中自動換行tds?

http://letschat.info/a-list-of-amazon-questions-and-answers-from-glassdoor/

,所以你甚至無法讀取的問題和答案。我試過如下:

Word-wrap in an HTML table

使用表格的佈局:固定

和自動換行:打破字,但它看起來都一樣。

我不知道我需要做的。

+0

請把代碼太 – hjpotter92 2013-04-09 04:41:15

+0

讓你表固定寬度,提供寬的風格元素,太..喜歡'<表style =「width:400px;」>' – 2013-04-09 04:43:07

回答

0

我想你需要顯示「塊」?

<table id="table"> 
<tr> 
<td> 
<a style="width:200px;background-color:aqua;display:block"> Be yourself. Try not to be nervous, they were once in your seat too. 5) Don&#8217;t bluff anyone. Don&#8217;t try to impress them with something if you don&#8217;t know it. Be honest. In the end, it&#8217;ll help you. 6) They say check in at least 15 minutes early. I say, GET THERE 30 to 45 minutes early because there will be traffic, and taxi&#8217;s aren&#8217;t easy to get a hold of from your hotel. Sit in the lobby with other people and TALK TO THEM, relax, laugh, and enjoy it. 7) GET TO THE CHOOPPPA early. Seriously, don&#8217;t be late for your flights in or out of SEATAC. If you&#8217;re not used to SEATAC, There is a train inside the airport that will take you to your gate. TSA takes about 20 minutes to get through. Always come early. 8) Taxi&#8217;s and food are expensive, and although they do take plastic. Use cash. You don&#8217;t want to deal with a stolen credit card on trips during an interview. You don&#8217;t need the stress. If you are there for approximately 2 nights and 3 days, or even 1 night and 2 days, take approxima 
</a> 
</td> 

0

試試這個

#td { 
    word-wrap: break-word; 
} 

#table { 
    word-wrap: normal; /* the default, naturally */ 
} 
相關問題