HTML iframe scrolling property
Examples
With slider <iframe>:
<iframe src="http://www.w3cschool.cc/" width="200"
height="200" scrolling="yes">
</iframe>
</iframe>
try it"
Browser Support
All major browsers support the scrolling attribute.
Definition and Usage
HTML5 does not support the <iframe> scrolling property. Use CSS instead.
scrolling attribute specifies whether the <iframe> in the scroll bar.
By default, if the content exceeds the <iframe>, a scroll bar will appear in the <iframe> in.
grammar
<iframe scrolling="auto|yes|no">
Property Value
值 | 描述 |
---|---|
auto | 在需要的情况下出现滚动条(默认值)。 |
yes | 始终显示滚动条(即使不需要)。 |
no | 从不显示滚动条(即使需要)。 |
HTML <iframe> tag