8.8课堂笔记

1.表单属性(延伸)

常用

 <!-- 表单属性 -->
    <form action="">
        <!-- 日期 -->
        <input type="date">
        <!-- 月 -->
        <input type="month">
        <!-- 周 -->
        <input type="week">
        <!-- 网址 -->
        <input type="url">
        <!-- 邮箱 -->
        <input type="email">
        <!-- 范围 -->
        <input type="range">
        <!-- 数字 -->
        <input type="number">
        <!-- 拾色器 -->
        <input type="color">
        <!-- 提交按钮 -->
        <input type="submit">
    </form>

2.fieldset

fieldset元素可将表单内的相关元素分组

<form>
  <fieldset>
    <legend>输入相关信息</legend>
    username: <input type="text" />
    password: <input type="password" />
  </fieldset>
</form>

效果图

3.框架集

3.1frameset框架集

<frameset  rows| cols="10%,*,20%" >
     <frame  name="" src=""  noresize="noresize"  scrolling="yes/no/auto" />
     <frame  name="" src="" >
</frameset>

frameset属性

  • rows 横向分割

  • cols 纵向分割(这里分割的是指页面也就是body)

  • frameborder 0/1 规定是否显示框架边框

  • border 设置边框粗细

frame属性

  • noresize 规定无法调整框架的大小

  • scrolling yes/no/auto 规定框架是否出现滚动条

4.1frameset跳转

跳转到frame指定板块

给对应的frame定义name名字

< frame name="right" src="left.html"/ >

修改跳转方式 < a href="one.html" target="right">第一页

4.2noframes

判断你的浏览器是否支持框架

<frameset cols = "25%,*">
  <noframes>
    <body>
      你的浏览器不支持框架
    </body>
  </noframes>
  <frame src ="" />
  <frame src ="" /> 
</frameset>

4.3iframe内连框架

<iframe name="" src="" frameborder="0|1" 
width="" height="" scrolling="no|auto|yes">
</iframe>

name:规定 iframe 的名称 src:规定在 iframe 中显示的文档的 URL width:规定 iframe 的宽度 height:规定 iframe 的高度 scrolling:规定是否在 iframe 中显示滚动条

5.iframe跳转

<iframe name="" src="" frameborder="0|1" width="" height="" scrolling="no|auto|yes"></iframe>
<a href="http://www.baidu.com" target='_top|_parent'>百度</a>

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值