Introduction to HTML Frameset

Source: Internet
Author: User

The frameset element can define a frameset. It is used to organize multiple windows (frames). Each frame has a separate document.

属性      ①border        设置框架的边框粗细。    ②bordercolor        设置框架的边框颜色。    ③frameborder        设置是否显示框架边框。设定值只有0、1;0 表示不要边框,1 表示要显示边框。    ④cols        纵向分割页面。        其数值表示方法有三种:“30%、30(或者30px)、*”;        数值的个数代表分成的视窗数目且数值之间用“,”隔开。        “30%”表示该框架区域占全部浏览器页面区域的30%;“30”表示该区域横向宽度为30像素;“*”表示该区域占用余下页面空间。        例如:cols="25%,200,*" 表示将页面分为三部分,左面部分占页面30%,中间横向宽度为200像素,页面余下的作为右面部分。    ⑤rows        横向分割页面。数值表示方法与意义与cols相同。    ⑥framespacing        设置框架与框架间的保留的空白距离。

Vertical structure

    <frameset cols="25%,50%,25%">      <frame src="/example/html/frame_a.html">      <frame src="/example/html/frame_b.html">      <frame src="/example/html/frame_c.html">    </frameset>

Horizontal structure

    <frameset rows="25%,50%,25%">      <frame src="/example/html/frame_a.html">      <frame src="/example/html/frame_b.html">      <frame src="/example/html/frame_c.html">    </frameset>

Mixed structure

    <frameset rows="50%,50%">        <frame src="/example/html/frame_a.html">        <frameset cols="25%,75%">            <frame src="/example/html/frame_b.html">            <frame src="/example/html/frame_c.html">        </frameset>    </frameset>
The noframes element can display text for browsers that do not support frames.
<frameset cols="25%,50%,25%">  <frame src="/example/html/frame_a.html">  <frame src="/example/html/frame_b.html">  <frame src="/example/html/frame_c.html"><noframes><body>您的浏览器无法处理框架!</body></noframes></frameset>

Introduction to HTML Frameset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.