zoukankan      html  css  js  c++  java
  • 20150917-html第二次课

    一、滚动字幕标签<marquee></marquee>

        

       属性:

                 scrollamount 指定每次移动的速度,数值越大速度越快

                 scrolldelay    文字每一次滚动的停顿时间,单位是毫秒。时间越短滚动越快

                 hspace   指定字幕左右空白区域的大小

                 vspace   指定字幕上下空白区域的大小

                 direction       设定文字的卷动方向,left表示向左,right表示向右,up表示往上滚动,down向下

                 behavior       指定移动方式,scroll表示滚动播出,slide表示滚动到一方后停止,alternate表示滚动到一方后向相反方向滚动。

       例:<marquee scrollamount="5" scrolldelay="1" hspace="200" vaspace="50" direction="left" behavior="scroll">具体滚动内容</marquee>

      

    二、表单元素<form></form>

       按钮:<input type="button" value="我是按钮"/>

       重置按钮:<input type="reset" value="重置"/> 

       提交按钮:<input type="submit" value="提交"/> 

       图像控件:<input type="image" src=""/> 

       复选框控件:<input type="checkbox" name="fruit" value ="mango">芒果<br> 

                        <input type="checkbox" name="fruit" value ="apple">苹果<br> 

                        <input type="checkbox" name="fruit" value ="orange" >桔子<br>

       单选框控件:<select name="fruit" > 

                          <option value="apple">苹果</option> 

                          <option value="orange">桔子</option> 

                          <option value="mango">芒果</option>

                    </select>

        下拉菜单

            <select name="" >

               <option value="">请选择省份</option>

               <option value="1">广东</option>

               <option value="2">广西</option>

            </select>

            注:如要多选请加代码 multiple="multiple"

        密码控件:<input type="password"  />

        文件上传控件:<input type="file" />

        普通文本框:<input type="text" value="我是文本框" />

         <fieldset></fieldset> 控件组标签

             <fieldset>

               <legend>health information</legend>

               height: <input type="text" />

               weight: <input type="text" />

             </fieldset>

  • 相关阅读:
    rails s 命令不起作用
    ubuntu下virtualbox共享usb
    ubuntu15.04 无法识别exfat格式
    .net core 2.2 修改IdentityUser主键标识类型
    Mac os 安装node.js及环境变量的配置过程
    常见互联网网络名词整理
    assert的用法
    Mac系统中 改变 pip总是默认安装在Mac上自带的python上为python3
    测试工程师的发展之路
    MySQL的mysql-8.0.17-winx64版本安装过程中遇到的问题
  • 原文地址:https://www.cnblogs.com/zhangjx/p/4823786.html
Copyright © 2011-2022 走看看