HTML <frame> scrolling 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <frame> scrolling 属性
实例
一个总是显示滚动条的框架:
<frameset cols="50%,50%">
<frame src="frame_a.htm" scrolling="yes">
<frame src="frame_b.htm">
</frameset>
<frame src="frame_a.htm" scrolling="yes">
<frame src="frame_b.htm">
</frameset>
浏览器支持
Internet Explorer 8 及之前的版本、Firefox、Opera 都支持 scrolling 属性。
注意:Internet Explorer 9 及之后的版本不再支持 scrolling 属性。
定义和用法
HTML5 不支持 <frame> 标签。
scrolling 属性规定是否在 <frame> 中显示滚动条。
默认地,如果内容大于 <frame>,就会在 <frame> 中出现滚动条。
语法
<frame scrolling="auto|yes|no">
属性值
| 值 | 描述 |
|---|---|
| auto | 在需要的时候显示滚动条(默认)。 |
| yes | 始终显示滚动条(即使不需要)。 |
| no | 从不显示滚动条(即使需要)。 |
HTML <frame> 标签