Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/385.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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
Javascript 我的元素显示在不同窗口大小的不同位置。如何定位?_Javascript_Jquery_Css - Fatal编程技术网

Javascript 我的元素显示在不同窗口大小的不同位置。如何定位?

Javascript 我的元素显示在不同窗口大小的不同位置。如何定位?,javascript,jquery,css,Javascript,Jquery,Css,看看我的网站: 如果将鼠标悬停在产品图像下的“更多视图”字样上,将显示一个附加图像框。正常情况下,它通常出现在中心。但是,当我缩小窗口大小时,长方体的位置将发生变化 我正在使用slideviewerpro脚本,我相信这是一个定位框,但我无法解决这个问题。以下是脚本的源代码: 我相信附加图像框在div#thumbsloider中,对js文件做了一些尝试和错误修改,但未能解决问题。确定。首先,你的div的宽度:660px需要有位置:相对添加到它。然后您需要更改以下规则 .product-view .

看看我的网站:

如果将鼠标悬停在产品图像下的“更多视图”字样上,将显示一个附加图像框。正常情况下,它通常出现在中心。但是,当我缩小窗口大小时,长方体的位置将发生变化

我正在使用slideviewerpro脚本,我相信这是一个定位框,但我无法解决这个问题。以下是脚本的源代码:


我相信附加图像框在div#thumbsloider中,对js文件做了一些尝试和错误修改,但未能解决问题。

确定。首先,你的div的
宽度:660px产品img框中的code>需要有
位置:相对添加到它。然后您需要更改以下规则

.product-view .product-img-box #ui0 {
    position: absolute;
    top: 600px;
    left: 580px;
    height: 60px;
}

widgets.css:589


然后从那里开始调整。:)

在我检查页面元素之前,我很难理解您最初的意思。花了我一些时间,但它的工作!谢谢
.product-view .product-img-box #ui0 {
    position: absolute;
    height: 60px;
    left: 50%;
    margin-left: -200px;
    margin-top: 15px;
}