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

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

<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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值