DIV中align:center不能居中
代码如下:<!--BaiduButtonBEGIN--> <divid="bdshare"class="bdshare...
代码如下:<!-- Baidu Button BEGIN --> <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" align="center"> <span class="bds_more">分享到:</span> <a class="bds_qzone"></a> <a class="bds_tsina"></a> <a class="bds_tqq"></a> <a class="bds_renren"></a> <a class="shareCount"></a> </div><script type="text/javascript" id="bdshare_js" data="type=tools&uid=57089" ></script><script type="text/javascript" id="bdshell_js"></script><script type="text/javascript">document.getElementById("bdshell_js").src = " http://share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();</script><!-- Baidu Button END -->
展开
2个回答
展开全部
align:center 他不支持div的 只支持table,,如果你想让div剧中 可以用 margin:0 auto 0 auto ;
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" style="margin:0 auto 0 auto;"> <span class="bds_more">分享到:</span> <a class="bds_qzone"></a> <a class="bds_tsina"></a> <a class="bds_tqq"></a> <a class="bds_renren"></a> <a class="shareCount"></a> </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&uid=57089" ></script><script type="text/javascript" id="bdshell_js"></script><script type="text/javascript">document.getElementById("bdshell_js").src = " http://share.baidu.com/static/js/shell_v2.js?t="; + new Date().getHours();</script><!-- Baidu Button END -->
不会可追问
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" style="margin:0 auto 0 auto;"> <span class="bds_more">分享到:</span> <a class="bds_qzone"></a> <a class="bds_tsina"></a> <a class="bds_tqq"></a> <a class="bds_renren"></a> <a class="shareCount"></a> </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&uid=57089" ></script><script type="text/javascript" id="bdshell_js"></script><script type="text/javascript">document.getElementById("bdshell_js").src = " http://share.baidu.com/static/js/shell_v2.js?t="; + new Date().getHours();</script><!-- Baidu Button END -->
不会可追问
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询