我无法确定使用什么代码来生成这个因为我正在使用WP Google Maps插件 - 在我设置地图的后端,标记位于正确的位置但是,实际上地图标记都偏移了大约一英寸(显然取决于屏幕尺寸/分辨率)......我有哪些CSS可能导致这种情况?
如果您想快速查看,请访问以下网站:http://coopadvertising.ca/respire/locations-contact/
谢谢, 托马斯
答案 0 :(得分:0)
标记没有偏移,其他一切都是偏移的(例如,瓷砖,你也可能已经注意到版权和google-logo缺失了)
这是由http://coopadvertising.ca/respire/wp-content/themes/sympathique/style.css中的这些格式引起的:
.page-title .page-background {
height: 180px;
left: 0px;
overflow: hidden;
position: absolute;
top: 0px;
width: 100%;
z-index: 0;
}
.page-title .page-background img {
left: 50%;
margin-left: -960px;
position: absolute;
top: 0px;
}