![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css常见问题
文章平均质量分 89
css的常见问题
a289339793
这个作者很懒,什么都没留下…
展开
-
深入理解css优先级
原文:https://www.cnblogs.com/starof/p/4387525.html先来看几个例子:<html><style type="text/css">body h1 { color: green;}html h1 { color: purple;}</style><body> <h1>Here is a title!</h1></body></html>转载 2021-04-29 17:54:45 · 278 阅读 · 0 评论 -
10种水平垂直居中对齐方式
原文 :https://yanhaijing.com/css/2018/01/17/horizontal-vertical-center/目录 居中元素定宽高适用 absolute + 负margin absolute + margin auto absolute + calc 居中元素不定宽高 absolute + transform lineheight writing-mode table css-table flex grid 为了实现.转载 2021-04-29 17:18:02 · 276 阅读 · 0 评论 -
flex 布局详解
原文链接:https://www.ruanyifeng.com/blog/2015/07/flex-grammar.html概念弹性盒模型,设为 flex 布局以后,子元素的float、clear和vertical-align属性将失效。属性一览.box{ display: flex;} 容器( box ) 属性 属性名 属性含义 属性值 flex-direction 决.转载 2021-04-28 18:24:51 · 66 阅读 · 0 评论