HTML iframe frameborder attribute
Examples
Without borders <iframe>:
<iframe src="http://www.w3cschool.cc/" width="200"
height="200" frameborder="0">
</iframe>
</iframe>
try it"
Browser Support
All major browsers support the frameborder attribute.
Definition and Usage
HTML5 does not support the <iframe> frameborder attribute. Use CSS instead.
frameborder attribute specifies whether a border <iframe> around.
Tip: For reasons of practicality, it is best not to set this property, use CSS to apply border .
grammar
<iframe frameborder="1|0">
Property Value
值 | 描述 |
---|---|
1 | 默认。开启边框。 |
0 | 关闭边框。 |
HTML <iframe> tag