Chrome检查元素的奇怪问题 [英] Weird issue with Chrome inspect element

查看:143
本文介绍了Chrome检查元素的奇怪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我载入我的网页时,其中一张图片高于预期。当我右键点击检查元素在页面上的任何地方,图像会回到其正常位置。什么原因可能导致?在FF中,图像在页面加载时处于其正确位置。以下是检查元素之前和之后的样子:

When I load my page, one of the images is higher than it is supposed to be. When I right click "Inspect element" anywhere on the page, the image shifts back to its normal position. What could cause this? In FF the image is in its correct position on page load. Here's what it looks like before and after inspect element:

推荐答案

如果您使用下面的css,应该可以解决您的问题。

If you use the css below instead it should solve your problem.

#content{
    position: relative;
}
.page-company-profile .node .taxonomy_image_wrapper {
    position: absolute;
    left: 500px;
    top: 58px;
}

这篇关于Chrome检查元素的奇怪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆