揭开clearfix和overflow的神秘面纱 🔑 clearfix Reloaded + overflow:hidden Demystified
About the author: Thierry Koblentz is a front-end engineer at Yahoo! He owns TJK Design and ez-css.org. You can follow Thierry on Twitter at @thierryk 继续>
Blog of ZCW 亦·德利菲的小窝
About the author: Thierry Koblentz is a front-end engineer at Yahoo! He owns TJK Design and ez-css.org. You can follow Thierry on Twitter at @thierryk 继续>
From: http://geon.github.io/programming/2016/02/24/flexbox-full-page-web-app-layout I was working on a web app layout, and since we require a modern b 继续>
1 2 3 4 5 6 7 8 9 10 11 12 13 | <ul><li>Home</li> <li>About</li> <li> Portfolio <ul> <li>Web Design</li> <li>Web Development</li> <li>Illustrations</li> </ul> </li> <li>Blog</li> <li>Contact</li> </ul> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | body { font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif; padding: 20px 50px 150px; font-size: 13px; text-align: center; background: #E3CAA1; } ul { text-align: left; display: inline; margin: 0; padding: 15px 4px 17px 0; list-style: none; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); } ul li { font: bold 12px/18px sans-serif; display: inline-block; margin-right: -4px; position: relative; padding: 15px 20px; background: #fff; cursor: pointer; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; -ms-transition: all 0.2s; -o-transition: all 0.2s; transition: all 0.2s; } ul li:hover { background: #555; color: #fff; } ul li ul { padding: 0; position: absolute; top: 48px; left: 0; width: 150px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; display: none; opacity: 0; visibility: hidden; -webkit-transiton: opacity 0.2s; -moz-transition: opacity 0.2s; -ms-transition: opacity 0.2s; -o-transition: opacity 0.2s; -transition: opacity 0.2s; } ul li ul li { background: #555; display: block; color: #fff; text-shadow: 0 -1px 0 #000; } ul li ul li:hover { background: #666; } ul li:hover ul { display: block; opacity: 1; visibility: visible; } |
from:http://cssdeck.com/labs/another-simple-css3-dropdown-menu
origin|转载来源:http://beradrian.wordpress.com/2008/01/08/cross-browser-custom-css-cursors/ You can see that big portion is for making the design work in 继续>
Bootstrap并不是单单意味着HTML/CSS界面框架,更确切的说,它改变了整个游戏规则。这个囊括了应有尽有的代码框架使得许多应用和网站的设计开发变得简便许多,而且它将大量的HTML框架普及成了产品。 可悲的是,它纯粹的功能唤起了我们本能的懒惰,很多人始终坚持使用它的默认设置。现在,你要知道,这 继续>
Let’s say you have a CSS transition that takes an element and scales it two times on mouseover. Your code probably looks like this: [crayon-673ee47dd8 继续>
Chrome的Canary频道和Sarafi的WebKit nightly build,这两者现在都已经支持CSS渲染器的Photoshop风格混合模式,Adobe将Photoshop样式的过滤工具带入了网络。 要应用最新的混合模式,你需要获取最新的Chrome Canary版本或者是WebKit 继续>
在网页前端开发制作中经常遇到需要使用微软雅黑,宋体等中文字体的情况,一般我们直接使用
1 | font-family:"微软雅黑"; |
这样的写法,然而在一些英文系统或者MAC中直接在CSS中使用中文可能会无法读取,或者你是像我一样,看到在CSS中出现中文就心里不爽的人,那么,介绍C 继续>