css中的各种属性以及属性值

1.三角形的制作

width:0;
height:0;
border:20px solid transparent; (transparent:透明);
overflow:hidden;
display:inline-block;
border-top-color:red;
得到倒三角
2.属性:属性值
list-style:none 去除项目列表符号; disc实心圆circle空心圆square小方块
text-decoration:none; overline(上划线)underline(下划线)line-through:中划线
text-align: center对齐方式;right(右对齐)left(左对齐);
border-style:边框样式 ;solid(实线)dashed(虚线)dotted(点线) double(双实线);
vertical-align:控件和文本文字垂直对齐方式:top(上) middle(居中)bottom(下);
text-indent:首行缩进 最优选为2em ; -9999px可使文本隐藏
让盒子水平居中:margin:0 auto; (块元素)
target:窗口打开方式 _blank(新窗口)_self(本窗口) _top(首页)_parent
method:表单提交方法:“post”(提交) get(接收)
font-family:“宋体”设置字体 ;
font-style:是否倾斜normal(不倾斜) italic(倾斜)
font-weight:文本是否加粗 normal或者<=400(不加粗) bold 或者bolder 或者>=600:加粗
color:颜色;red 或者“#f00” 或者“#493021”
文本属性、width可被继承但是height不能被继承
3.比较常用的特殊字符
  空格
© 版权信息
® 注册商标
< 小于号
" ""
>;大于号
& &
4.关于input
input的type类型有很多

(1).老版本的
type="text"单行文本框
type="hidden"隐藏输入框
type="password"密码框
type="file"文本域
type="radio"单选框
type="checkbox"复选框
type="submit"提交按钮
type="reset"重置按钮
type="button"普通按钮
(2).新版本
type="color"拾色器
type="date"定义date控件:年、月、日 不包括时间
type="datetime"定义date和time控件年、月、日、时、分、秒、几分之一秒(基于UTC时区)
type="datetime-local"data 和time控制 年、月、日、时、分、秒、几分之一秒(不带时区)
type="email"定义用于e-email地址的字段
type="month"定义month和year控件(不带时区)
type="number"用于输入数字的字段
type="range"用于精确值不重要的输入数字的控件
【css中的各种属性以及属性值】4.

    推荐阅读