javascript - How to round Corners on iframe -


and before links it, here example trying follow.

rounded iframe

i literally copied code exactly, , when load in different browswers, edges still square.

after looking @ source code, did notice line

 .topleft, .topright, .bottomleft, .bottomright {position:absolute;z-index:1000;background-image: url(corners.png);width:20px;height:20px;} 

is issue dont have these corner pictures? when tried inspect element find 'corners.png' nothing there. confused.

here entire code

    <!-- example taken http://search.missouristate.edu/map/mobile/examples/corners.htm --> <!doctype html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>rounded map corners - google maps javascript api v3</title> <style>     html, body {height: 100%; margin: 0;}     #container {position:relative;width:400px;margin:20px;}     .topleft, .topright, .bottomleft, .bottomright {position:absolute;z-index:1000;background-image: url(corners.png);width:20px;height:20px;}     .topleft {left: 0; top: 0;}     .topright {right: 0; top: 0; background-position: top right;}     .bottomright {right: 0; bottom: 0; background-position: bottom right;}     .bottomleft {left: 0; bottom: 0; background-position: bottom left;}     #map_canvas {width: 400px; height: 400px;} </style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var map; function initialize() {     var mapoptions = {         zoom: 15,         center: new google.maps.latlng(37.20084, -93.28121),         maptypeid: google.maps.maptypeid.roadmap,         sensor: false     };     map = new google.maps.map(document.getelementbyid("map_canvas"), mapoptions); } </script></head><body onload="initialize()"> <div id="container">     <div class="topleft"></div>     <div class="topright"></div>     <div id="map_canvas"></div>     <div class="bottomleft"></div>     <div class="bottomright"></div> </div> </body></html> 

does example work other people? or when copy , paste code same result do?

here link screen shot of result. tried put code in jsfiddle didnt work.

imageshack screenshot

why did not corners.png. can download here.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -