+ -
当前位置:首页 → 问答吧 → Jquery Mobile 问题

Jquery Mobile 问题

时间:2013-05-31

来源:互联网

$( document ).on( "popupafterclose", ".ui-popup", function() {
        $( this ).remove();
});

$( this ).remove()
你把class name为"ui-popup"的element删掉了而不是隐藏
当你再按share时它已经不存在了
把这段删掉就没问题

顺带提提你
$( ".photo", "#popup-" + namePic ).load(function() {
            var height = $( this ).height(),
                width = $( this ).width();
            $( this ).attr({ "height": height, "width": width });
            $( "#popup-" + namePic ).popup( "open" );
            clearTimeout( fallback );
});   

下的
clearTimeout( fallback ); 有甚么特别用途?
如果没有请删掉,因为没有fallback这个variable,会造成JavaScript Error.

再者,在按share右方panel弹出后,若果把视窗放大缩小,右方panel会不断移向左边,所以建议在这段CSS后方加上!important
#popupPanel-popup {
    right: 0 !important;
    left: auto !important;
}

[ 本帖最后由 Cendo 於 2013-6-2 03:44 PM 编辑 ]

作者: Cendo   发布时间: 2013-06-02

热门下载

更多