我正在嘗試爲Google地圖iframe製作自定義的不規則幀。您可以到目前爲止在這裏看到我的結果:在css中通過重疊div來製作自定義圖像幀,但無法再訪問該圖像
http://bufident.com/pruebas/site02/contacto/contacto.html
(請原諒馬虎的標記) 我能想出這樣做的唯一方法是有1個格與框架的股利與地圖重疊這樣
<div style="width:418px; height: 375px;position:relative;top:-375px;z-index:3;">
<iframe width="418" height="375" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=bufident&hl=en&sll=40.397236,-3.704112&sspn=0.071946,0.071946&ie=UTF8&t=h&view=map&cid=5584215307643134377&hq=bufident&hnear=&ll=40.397238,-3.704109&spn=0.006128,0.008948&z=16&iwloc=A&output=embed"></iframe>
</div>
<div style="clear:both;"></div>
不幸的是,如果我這樣做我不再能夠與地圖進行交互。我嘗試了在另一個線程(http://www.cssbakery.com/2010/11/css-cookie-cutter-revisited.html)中建議的稍微不同的方法,但我得到了相同的結果 有什麼建議嗎?謝謝大家
哦,是的啊,或@Tim說,將邊界分成四邊,儘可能地裁剪圖像,然後放在上面。 – addedlovely 2011-06-09 17:46:59