首页 > 其他 > 详细

2015.7.7 第二课 课程重点

时间:2015-07-07 22:24:22      阅读:253      评论:0      收藏:0      [点我收藏+]

一、html部分

1、按钮:

<input type="button">

2、文本框:
<input type="text">

3、密码:
<input type="password">

4、单选:
<input type="radio" id="male" name="sex" checked="checked"><label for="male">男</label>
<input type="radio" id="female" name="sex"><label for="female">女</label>

5、复选框:
<input type="checkbox">红色<input type="checkbox">绿色

6、下拉菜单:
<select>
  <option>--请选择--</option>
  <option>唱歌</option>
  <option>跳舞</option>
</select>

7、上传控件:
<input type="file">

8、多行输入框:
<textarea maxleng="限制字数" cols="宽度" rows="高度"></textarea>

9、重置按钮:
<input type="reset"> [只针对它所在的form表单有效果]

10、提交按钮:
<input type="submit"> [只针对它所在的form表单有效果]


二、css样式部分

1、css样式的三种常用写法:
  第一种 行内样式:直接在标签里,加<p style="color:red"></p>
  第二种 内嵌式:在head里面,加入<style> p{ color:red;} </style>
  第三种 链接式:在外部新建css文件写入样式,引入html:
    <link rel="stylesheet" type="text/css" href="相对路径.css">

 

2015.7.7 第二课 课程重点

原文:http://www.cnblogs.com/59muyu/p/4628550.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!