Kon*_*ooo 0 html google-maps hide
我创建了一个带有两个点的谷歌地图页面,我会将它嵌入到我的页面中,但是如何隐藏出现在顶部的 div(标题)
https://jsfiddle.net/095bzndb/
<iframe src="https://www.google.com/maps/d/embed?mid=1yvGgjUjlI4UpAd8f0SqmUW1tf8uHSLSU&hl=de" width="640" height="480"></iframe>
.i4ewOd-pzNkMb-haAclf{
visibility:hidden;
display:hide;
}
$(document).ready(function() {
$('.i4ewOd-pzNkMb-haAclf').hide();
});
Run Code Online (Sandbox Code Playgroud)
破解它:
<div style="height:400px; width:100%; display:inline-block; overflow:hidden;">
<iframe src="https://www.google.com/maps/d/embed?mid=1yvGgjUjlI4UpAd8f0SqmUW1tf8uHSLSU&hl=de" width="640" height="445" frameborder="0" style="position:relative; top:-50px; border:none;"></iframe>
</div>
Run Code Online (Sandbox Code Playgroud)