Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何在fancybox中移动关闭按钮?_Jquery_Fancybox_Fancybox 2 - Fatal编程技术网

Jquery 如何在fancybox中移动关闭按钮?

Jquery 如何在fancybox中移动关闭按钮?,jquery,fancybox,fancybox-2,Jquery,Fancybox,Fancybox 2,我需要更改fancybox 2脚本中关闭按钮的位置。不知道怎么做。请帮忙。 我是这样做的: #fancybox-close { right: 20px !important; top: 12px !important; } fancybox关闭按钮由css文件(jquery.fancybox.css)管理,因此请尝试更改它的属性(顶部和右侧)以使其达到您想要的位置,以下是我的关闭按钮css: .fancybox-close { position: absolute;

我需要更改fancybox 2脚本中关闭按钮的位置。不知道怎么做。请帮忙。 我是这样做的:

#fancybox-close {
    right: 20px !important;
    top: 12px !important;
}

fancybox关闭按钮由css文件(jquery.fancybox.css)管理,因此请尝试更改它的属性(顶部和右侧)以使其达到您想要的位置,以下是我的关闭按钮css:

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

fancybox 2中没有这样的选择器