This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13864|Reply: 1

[HTML/HTML5] How to center the text in the table? font has no effect

[Copy link]
Posted on 11/4/2014 11:18:15 PM | | | |


How can I center the text "common tools" in the table?

Setting font has no effect

  1. <table width="960" >
  2.   <tr class="tool_tr">
  3.           <td class="tool_tr" colspan=3>
  4.                 <font style="text-align:center">常用工具</font>
  5.         </td>
  6.   </tr>
  7.   <tr>
  8.     <td class="tool_td"><a href="html/index.html">HTML/CSS/Javascript在线代码运行工具</a></td>
  9.     <td class="tool_td"><a href="sheji/zuiwuhan/index.html">武汉厚溥html静态网页设计大赛作品展示--最武汉</a></td>
  10.     <td class="tool_td"> </td>
  11.   </tr>
  12. </table>
Copy code
I don't know if there is something wrong




Previous:Screen Recorder v7.5 Perfect Cracking Tutorial with Keygen!
Next:The impact of Double Eleven? Alibaba's stock price broke $100 for the first time
 Landlord| Posted on 11/4/2014 11:19:44 PM |
The problem was solved It turned out that TD should also be set to center
  1. <td class="tool_tr" colspan=3 align="center">
Copy code


Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com