`

css tricks and hacks

    博客分类:
  • css
CSS 
阅读更多

被重写的属性在CSS Style中会以删除线标示
css class 优先级    
结论:若同时应用多个class,后定义的优先(即近者优先),加上!important最优先! color: #0000FF!important;

CSS z-index 属性
z-index 属性设置元素的堆叠顺序。拥有更高堆叠顺序的元素总是会处于堆叠顺序较低的元素的前面。
注释:元素可拥有负的 z-index 属性值。
注释:Z-index 仅能在定位元素上奏效(例如 position:absolute;)!


http://css-tricks.com/css-sprites/



分享到:
评论

相关推荐

    The CSS Anthology: 101 Essential Tips, Tricks & Hacks, 3rd Edition

    The CSS Anthology: 101 Essential Tips, Tricks & Hacks is a compilation of best practice solutions to the most challenging CSS problems. The third edition of this best-selling book, published in full ...

    The.JavaScript.Anthology.101.Essential.Tips.Tricks.Hacks

    《JavaScript Anthology: 101 Essential Tips, Tricks & Hacks》是一本专注于JavaScript编程实践的书籍,旨在帮助开发者提升JavaScript技能,掌握一系列实用的技巧、窍门和黑客技术。这本书的内容涵盖了AJAX、CSS、...

    (英文)The CSS Anthology: 101 Essential Tips, Tricks & Hacks 2009

    ### CSS Anthology: 101 Essential Tips, Tricks & Hacks (2009) — 知识点解析 #### 一、概述 《CSS Anthology: 101 Essential Tips, Tricks & Hacks》是一本由SitePoint Pty Ltd于2009年出版的专业CSS书籍,作者...

    HTML & CSS: The Good Parts

    Author Ben Henick shows you how to avoid those traps by going beyond the standard tips, tricks, and techniques to connect the underlying theory and design of HTML and CSS to your everyday work habits...

    The JavaScript Anthology

    ### JavaScript Anthology:101 Essential Tips, Tricks & Hacks #### 一、概述 《JavaScript Anthology:101 Essential Tips, Tricks & Hacks》是一本由James Edwards与Cameron Adams共同编著的书籍,该书由...

    Digging into WordPress.pdf

    9.5.4 Optimizing CSS and JavaScript ...................................................362 9.5.5 Reducing the Number of HTTP Requests .......................................363 9.5.6 Plugin ...

Global site tag (gtag.js) - Google Analytics