-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS Tricks #37
Comments
利用 |
文字https://jsfiddle.net/8ft7wos0/ white-space
word-wrap定义如何 wrap
text-overflow文本超出之后如何显示,在 overflow: hidden 时才起作用。
|
|
BFChttp://www.html-js.com/article/1866 case1全是float的子元素, 可以使用.clearfix去fix, 也可以去触发一个BFC, 例如 拿bootstrap的btn group来说, button子元素中可能有 space 空白, 引起间距, 使用 float取消这个检举, 然后就全是 float 子元素了, .btn-group 使用 display: inline-block 消除这个 case2, position: absolute生成了新的 block format context, 于是连同 border, 对齐在 left: 0, right: 0 |
CSS3 box-shadow |
css 优先级相同后出现再 css 文件中的,起作用。https://jsfiddle.net/magicdawn/rhL1cfp8/ |
盒模型W3C的 width height都是默认是 content-box的宽高。 |
CSS3 selectorhttp://www.w3school.com.cn/cssref/css_selectors.asp 根元素
状态
child
nth-child / nth-of-type 区别
only-child
before & after
|
css 两栏等高布局http://jsfiddle.net/magicdawn/xU2LA/18/ margin-bottom 负值, 效果为不占用竖直方向上的 margin, 消除 padding-bottom |
flex 问题absolute in flexflex 的 absolute child, 没有因为 align-items 居中, only safari flex-growflex-grow是剩余空间去 grow, 例如 https://jsfiddle.net/magicdawn/6s5ktb67/2/ |
ripplehttps://jsfiddle.net/magicdawn/7wrqLhke/ 注意点:
简而言之就是: 慢-快-慢 |
css stacking context
新建 stack contextcss 2
css3 |
|
height
https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
|
No description provided.
The text was updated successfully, but these errors were encountered: