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 编辑 ]
$( 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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28