Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> </head> <body> <iframe srcdoc="<p>Hello world!</p>" src="demo-iframe_srcdoc.htm"> <p>您的浏览器不支持 iframe 标签。</p> </iframe> <p><strong>注意:</strong> 只有 Chrome 和 Safari 6 支持 <iframe> 标签的 srcdoc 属性。</p> </body> </html>