我在主页上有一个 Gallery 插件,当我调整窗口大小时或放大/缩小时它会一直移动..
我无法确定它留在原地的确切规则。尝试了绝对和相对以及固定和静态..它一直在移动。
CSS 规则:
.box_skitter {position:relative;width:800px;height:300px;background:#000;right:442px;margin-top:52px;margin-bottom:32px;}
www.tranceil.fm
有什么想法吗?
最佳答案
移除skitter.styles.css中的位置选项position/right,并为水平位置添加margin auto
.box_skitter {
width: 985px;
height: 560px;
margin: 52px auto 32px;
background: black;
}
关于html - 图库插件位置在调整大小时移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11759000/