13.属性选择器、emment快捷键

来源:互联网 发布:windows lts 编辑:程序博客网 时间:2024/06/14 04:11

属性定义的标签选择器[ ]

<head>    <style type="text/css">        input[type=text][class]{            width:300px;            height:300px;            background:red;        }    </style></head><body>    <input type="text">    <input type="text" class="pwd">    <input type="password" class="user">    <input type="button">    <input type="submit"></body>

emment快捷键
1.生成子类标签
标签名>子标签名>子标签名>子标签名+tab
标签名>子标签名>子标签名>子标签名^^子标签名+tab

2.带固定数量的标签: ul>li*5+tab

3.带有序号名称 :ul>li.abc*3 + tab

4.生成带有内容的标签:ul>li>a{item}*5

5.css:
width:30px==>w30+tab
Height:30px==>h30+tab
Margin:30px==>mg30+tab
Padding:30px==> pd30+tab
Line-height:12px==>lh12px+tab
Background==>bg+tab

原创粉丝点击