下面的JS代码删除了iframe的frameBorder,iframe就没有了明显的边框显示
<!DOCTYPE html> <html> <head> <script> function removeBorder() { document.getElementById("myframe").frameBorder="0"; } </script> </head> <body> <iframe id="myframe" src="/default.asp"> <p>Your browser does not support iframes.</p> </iframe> <br><br> <input type="button" onclick="removeBorder()" value="Remove border"> <p><b>Note:</b> This example does not work in Internet Explorer.</p> </body> </html>