Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的网站中设置一个 iframe(确切地说是嵌入谷歌地图 iframe)作为 div 背景。
所以基本上你会有一个带有标题、段落和作品的 div。但作为背景,您将拥有地图 iframe。仍然功能齐全等。
最简单的方法是什么?提前致谢!
不确定是否有办法将 iframe 设置为 div 背景,但你为什么不在z-indexiframe 之上只放置一个 div 呢?这样您就可以在 div 中显示您的信息,并且不会影响其后面的 iframe。
z-index