前端学习笔记<一>

html基础(表格)

  1. 表头 : caption
  2. 合并行单元格 : colspan
  3. 合并列单元格 : rowspan
  4. 取消边框缝隙 : cellspacing=”0”
  5. 表格中内容位置 : valign = top | middle | bottom

html基础 (文本和input)

* 多行文本框*
属性:cols(字符长度) rows(输入的字符的行数)

  1. input type=”file” // 上传文件
  2. input type=”submit” // 文件提交
  3. input type=”reset” // 重置
  4. input type= “url” //网址
  5. input type= “date” //日期
  6. input type= “time” //时间
  7. input type= “email” //邮件
  8. input type= “range” //滑块

fieldset 对表单信息分组

legend 分组名称

CSS : 层叠样式表

复合选择器

  1. 交集选择器 : 标签 + 类 ( ID ) 特点(即使用了这个标签还调用了类选择器)
  2. 后代选择器 : 选择器 + 空格 + 选择器 { 属性 : 值 }
  3. 子代选择器 : 选择器 > 选择器 { 属性 : 值 }
  4. 并集选择器 : 选择器,选择器,选择器{ 属性 : 值 }

文本元素

//首行缩进两个字符
text-indent : 2em
//文字粗细
Font-weight : 700 (一般从700开始加粗)
//文本的字体
Font-family :微软雅黑
//normal默认值  italic斜体
Font-style:normal | italic
//行高
line-height : 40px

猜你喜欢

转载自blog.csdn.net/guohaosir/article/details/79403795