平板电脑上的ajax文本更新后,不会调整大小?

时间:2013-06-05 06:01:39

标签: html ipad css3 user-interface

请参阅截图

enter image description here

当用户点击块部分时,它会被AJAX请求更新。桌面和移动设备上的每一件事都很好。但是在iPad2和iPad3上它已经坏了。

任何人都可以帮忙吗?

HTML:

<div class="box-block block" data-block="Block" data-unblock="Unblock" style="display: none;">
   <a data-id="2335" class="btn-box">
     <span class="blockIcn"></span>
     <span class="blockText" style="display: none;">Block</span>
   </a>
 </div>

JAVASCRIPT:

 if (block === true) {
     $box.removeClass("block");
      $box.addClass("un-block");
      $link.find('span.blockText').hide().html(unblockLabel).show();
      } else {
        $box.removeClass("un-block");
        $box.addClass("block");
         $link.find('span.blockText').html(blockLabel);
       }

CSS

#masonary_content .box .box-connect {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 60px;
    left: 0;
    z-index: 2;
    text-align: center;
    display: none;
}

#masonary_content .box .box-block .blockIcn  
{
    background:#1a98aa;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}

#masonary_content .box .box-block .blockText {
    background: #157381;
    padding: 14px 20px 11px 38px;
    border-radius: 30px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 5px;
    z-index: 3;
    font-weight: bold;
    color: #fff;
    display: none;
}

0 个答案:

没有答案