Home >Web Front-end >HTML Tutorial >html inline frame
Inline frame
You can open an independent small window in the current page to open another website. The url is set by the src attribute.
The name attribute is very important, mainly for 3499910bf9dac5ae3c52d5ede7383485 The target attribute of the tag is called
<iframe src="http://www.jd.com" name="firame"></iframe>
ifream: inline frame, the most important attributes are name, width and height
<iframe src="http://www.jd.com" name="iframe" width="500" height="300">浏览器不支持框架</iframe>
seamless: remove the border and floating bar
<iframe src="http://www.jd.com" name="iframe" width="500" height="300" seamless>浏览器不支持框架</iframe>
if Seamless is invalid, you can use borderframe to set it
<iframe src="http://www.jd.com" name="iframe" width="500" height="290" frameborder="0">浏览器不支持框架</iframe>
Set the top, bottom and left and right margins: marginheight and marginwidth
<iframe src="http://www.jd.com" name="iframe" width="500" height="290" frameborder="0" marginheight="300" marginwidth="500">浏览器不支持框架</iframe>
The above is the detailed content of html inline frame. For more information, please follow other related articles on the PHP Chinese website!