9.19课堂记录

一,滚动字幕

1,<marquee>文字</marquee>

2,<marquee>

align:指定对齐方式,  top(顶),middle(中间),botton(底部)

scroll:  单向运动

slide: 文字一接触左边就停止

altemat: 左右返回动

bgcolor: 文字滚动范围的文字   文字的的背景

 滚动文字的高度

height: 滚动文字的宽度

scrollmount:文字移动速度,数值越大  越快

scrolldelay:文字滚动停顿时间 时间是毫秒  数值越短 滚动越快

direction:文字滚动方向 ,left 向左 ;right 向右;up 向上;down 向下

behavior:  scroll表示滚动播出slide 表示滚动到一方过后停止 altemate 滚动到一方后向反方向滚动

二,表单元素

   按钮:<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>

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

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

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

3、多行文本框

    <textarea name="yoursuggest" cols ="50" rows = "3"></textarea>

    用cols和rows控制行数列数

二,CSS(一)

1) 样式三种控制方法

1、 行内样式

2、 内嵌式

3、 链接式

4、 导入样式

<style>

 @import url(1.css)

</style>

1、 CSS 基本语法

1) CSS选择器

1、 标记选择器

2、 类别选择器

3、 ID选择器

4、 集体声明

5、 优先级

ID>类>标记

原文地址:https://www.cnblogs.com/second-2/p/4827222.html