如右側的微博關注組件,直接用div的align居中沒效果,我就開始百度了。即在<div> <script>.....</script> </div> 中,如何使<script>.....</script>中的內容在div 標籤中處於水平居中? javascript
<!-- 微博關注組件 -->
<div align="center">
<html xmlns:wb="http://open.weibo.com/wb">
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
<wb:follow-button uid="1625125434" type="red_3" width="100%" height="24" ></wb:follow-button>
</div>
1 <div>
2 <table border="0" cellpadding="0" cellspacing="0" style="margin-left:auto; margin-right:auto;">
3 <tr>
4 <td>..........</td>
5 </tr>
6 </table>
7 </div>
style="margin-left:auto; margin-right:auto;"是爲了讓table橫向居中,td默認是垂直居中的,果真有效。html
參考文獻:http://zhidao.baidu.com/link?url=110cA7m26328x4m_ACl1KW7SWyegVOEQFj3QdmPYJrqnaaq7Uk9rrYa_8LDcF3TTWdb-_7OWgbtwzVbILaHdzajava
原本想把右側的圖片更新成今天的,試了試發現徹底看不清楚,換回來吧。api
留住青春。ui