手机站如何兼容uc浏览器

手机上写了个分享代码,别的浏览器都行,就是uc不显示,怎么解决
代码

<div id="fixed">
<div class="online">
 <div class="map"><a href="">电话咨询</a></div>
     <div class="share">
   <!-- <div id="div">
     一键分享 </div>
   <div class="bdsharebuttonbox">一键分享
     <a href="#" class="bds_more" data-cmd="more">一键分享</a>
     <a href="#" class="bds_qzone" data-cmd="qzone"></a>
     <a href="#" class="bds_tsina" data-cmd="tsina"></a>
     <a href="#" class="bds_tqq" data-cmd="tqq"></a>
     <a href="#" class="bds_renren" data-cmd="renren"></a>
     <a href="#" class="bds_weixin" data-cmd="weixin"></a>
</div>-->
<div class="bdsharebuttonbox">
     <a href="#" class="bds_more" data-cmd="more">一键分享</a>
     
</div>
</div>
<script>
window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],
"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};
with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)]
</script>
<script>
$(function(){
      var divID=("#div"),
          div=("div"),
          divClass=(".div")
      })
</script>
</div>
</div>
样式表
<style>
*{ margin:0; padding:0;}
#fixed {
    z-index:999;
    position:fixed;
    bottom:0;
    left:0px;
    width:100%;
    _position:absolute;



 _top: expression_r(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight);
    overflow:auto;
    background-color: #000;
    height: 80px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #666;
 }
.online {
    width: 100%;
    clear: both;
    margin-right: auto;
    margin-left: auto;
    
}
.share{
    float: left;
    width: 50%;
    padding-top:12px;}

 .bdsharebuttonbox .bds_more{
     font-size: 24px!important;
    line-height: 36px!important;
    font-weight: normal!important;
    color: #32a1f0!important;
    background:url(http://www.tynongnong.com/yrimg/db4.png) no-repeat 0px center!important;
    display: block!important;
    height: 36px!important;
    
    padding-left:50px!important;
     }
.map{
    float: left;
    width: 50%;
    padding-top:10px;}
.map a {
    font-size: 24px;
    line-height: 60px;
    font-weight: normal;
    color: #4ca54b;
    background-image:url(http://www.tynongnong.com/yrimg/db1.png);
    background-repeat: no-repeat;
    background-position: 0px center;
    display: block;
    height: 60px;
    
    padding-left:50px;
}
</style>
阅读 5.8k
1 个回答

分享链接给下

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题