请看截图
当用户单击块部分时,它会通过 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;
}