zoukankan      html  css  js  c++  java
  • 属性选择器(通常用在input)

      1.  input[type="text"]{}

                       选中属性值为text的input

           2.  input[type|="text"]{}

                       选中以text-开始的input的type属性值

                       <input type="text-sadads">

            3. input[type^="text"]{}

                       选中标签中type属性以text属性值开始

                       注:该声明表示属性值有多个并每一个属性值之间用空格隔开

                        例如:    <input type="text sadads">

           4.  input[type*="text"]{}

                       选中input标签中type属性包含text属性值,属性值之间可不隔开

                         例如:   <input type="sadtextsadads">

           5.  input[type~="text"]{}

                       选中input标签中type属性包含text属性值

                       注:该声明表示属性值有多个并每一个属性值之间用空格隔开

                        例如:<input type="sadds text sadads">

           6.  input[type$="text"]{}

                       选中标签中type属性以text属性值结束

                       例如:<input type="ssd text">

  • 相关阅读:
    python IDE比较与推荐
    一个平庸程序员的想法
    [转载]Malcolm的新书:Outliers
    程序员的编辑器——VIM
    Blender网络资源
    普通人的编辑利器——Vim
    易学易用的Windows PowerShell
    分区表的修复(转)
    云南电信DNS服务器地址
    滇南本草(上)
  • 原文地址:https://www.cnblogs.com/huan123/p/8046353.html
Copyright © 2011-2022 走看看