CSS selectors never refrain from surprise how powerful they may be in matching complex patterns. Most of the flexibility is in the relationship between parents/children/siblings, which is very rare in the match. Consider my surprise when I learned that the CSS allows the values ​​of attributes regardless of this matter!

Add a {space}i The selector of the attribute will make the bracket a recovery price search case insensitive:

/* case sensitive, only matches "example" */
[class=example] {
  background: pink;
}

/* case insensitive, matches "example", "eXampLe", etc. */
[class=example i] {
  background: lightblue;
}

Matters used for this i The possibility of the flag is very limited, especially if this flag knows the knowledge for you and you are accustomed to the standard lower case quality. A loose CSS class name will be the standard and it will cause problems, so use this case a little bit of flag!

  • 5 html5 apis you didn't know

    When you say or read “HTML5”, you half expect foreign dancers and a unicorn to go to the room “I’m sexy and I know it.” Can you blame us? We have seen the basic APIS stagnation for so long that a basic feature …

  • 5 More HTML5 APIS you didn't know that

    HTML5 Revolution We have provided some amazing JavaScript and HTML APIS. There are some APIs that we knew we needed for years, cutting other mobiles and desktop helpers. Regardless of the power or purpose of API, we have anything to help us better …



Source link
Categories: Weight Loss

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *