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>

  • 相关阅读:
    只要三步,使用html5+js实现像素风头像生成器
    按Ctrl+Enter发送的实现
    “放到桌面”的Servlet实现
    从tom大叔那想着拿书的,呵呵。
    也写dateUtil.js
    智习室
    零基础爬虫课,不会编程也能做爬虫
    1小时教你学会如何采集微博数据:0基础小白也能轻松学会!
    TransactionScope 分布式事务配置
    centos7创建共享文件夹
  • 原文地址:https://www.cnblogs.com/zhangjx/p/4823786.html
Copyright © 2011-2022 走看看