zoukankan      html  css  js  c++  java
  • <frameset><frame><iframe>网页框架

    这几个标签都属于同一类功能,就是框架内镶功能:

    1)<frameset>意为把页面分解成一定部分,让每一部分显示不同的内镶框架,如(请复制到DW尝试):
    <html>
    <frameset rows="25%,50%,25%">
      <frame src="http://blog.sina.com.cn/yefeng9393">
      <frame src="http://blog.sina.com.cn/yefeng9393">
      <frame src="http://blog.sina.com.cn/yefeng9393">
    </frameset>
    </html>

    下面是纵向内镶框架(细心的同学不难发现,区别在于 rows横向、cols纵向):

    <html>
    <frameset cols="25%,50%,25%">
      <frame src="http://blog.sina.com.cn/yefeng9393">
      <frame src="http://blog.sina.com.cn/yefeng9393">
      <frame src="http://blog.sina.com.cn/yefeng9393">
    </frameset>
    </html>

    请注意,用frame这类标签的时候,必须要把body标签去掉,否则在不同浏览中容易出错!

    2)<iframe> 指用一定尺寸的框架,来定义页面里内镶的框架,如(复制到DW中尝试):

    <html>
    <iframe src="http://blog.sina.com.cn/yefeng9393" width="500px" height="400px">
    <p>您的浏览器不支持iframe!</p>
    </iframe>
    </html>

    此外,使用frame框架功能,还可以定制成网上比较通用的BBS论坛的主框架页面

  • 相关阅读:
    【CF 359B】Permutation
    如何更新 DevC++ 的编译器
    【LG 2801】教主的魔法
    矩阵浅谈
    NOI 系列赛常见技术问题整理
    Treap 浅谈
    DP 优化浅谈
    友链
    【CF 708C】Centroids
    我跳过的坑
  • 原文地址:https://www.cnblogs.com/zhujiabin/p/4527037.html
Copyright © 2011-2022 走看看