[英]Positioning the fancybox box?
如何修改fancybox盒的位置? 我希望它被定位,以便它漂浮在我的容器div中......
感謝您的所有時間和幫助!
jquery.fancybox-1.2.6的255行有這段代碼
var itemOpts = {
'left': itemLeft,
'top': itemTop,
'width': width + 'px',
'height': height + 'px'
};
更改“左”值以向左或向右移動花式框
您可以使用以下方法影響包裝器的定位以進行微調:
$("#fancybox-wrap").css("margin-left","-75px");
$("#fancybox-wrap").css("margin-top","60px");
但您必須根據需要調整它以及計算視口尺寸。
嘗試將這樣的東西滑入你的jquery:
$("#fancy_outer").css({"float":"right","position":"static"});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.