Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.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
Css Internet Explorer强制移动定位_Css_Wordpress_Internet Explorer_Jquery Masonry_Absolute - Fatal编程技术网

Css Internet Explorer强制移动定位

Css Internet Explorer强制移动定位,css,wordpress,internet-explorer,jquery-masonry,absolute,Css,Wordpress,Internet Explorer,Jquery Masonry,Absolute,大家好 我为一位客户创建了一个参考页面,上面镶嵌着许多房屋。每种浏览器中的所有内容都协调一致,工作正常,但Internet Explorer仍像往常一样制造问题 通常在其他浏览器中,每一张图片都排成一行,我们有很好的行。但在IE 9-11中,似乎有一些较低版本不受支持: 图片: 每个.gallery项都从脚本或Wordpress中获取单独的内联属性,我不太确定 element.style { position: absolute; left: 419px; /* varies with

大家好

我为一位客户创建了一个参考页面,上面镶嵌着许多房屋。每种浏览器中的所有内容都协调一致,工作正常,但Internet Explorer仍像往常一样制造问题

通常在其他浏览器中,每一张图片都排成一行,我们有很好的行。但在IE 9-11中,似乎有一些较低版本不受支持:

图片:

每个.gallery项都从脚本或Wordpress中获取单独的内联属性,我不太确定

element.style {
  position: absolute;
  left: 419px; /* varies with each gallery-item */
  top: 1400px; /* varies with each gallery-item */
}
.gallery项目的样式为:

欲了解更多信息,请访问此。 IE的解决方案在哪里


提前感谢您的帮助和考虑。

您是否使用CSS重置样式表?有时IE呈现边距等,与其他浏览器稍有不同。另外,你是否注意到IE中房屋的顺序与其他浏览器有何不同?似乎在IE中,一些代表由最左边的列组成的房子的dls跳到了最右边。请尝试显示:inline block,而不是绝对定位。
#gallery-1 .gallery-item {
  float: left;
  margin-top: 10px;
  text-align: center;
  width: 12%;
}

.gallery-item {
  margin: 0 3px 3px 0px !important;
  width: 12% !important;
}