![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web前端
weixin_43294750
这个作者很懒,什么都没留下…
展开
-
css3定位属性:position
css定位属性position取值:static,relative,absolute,fixed,sticky默认值:static继承性:无static:对象遵循常规流。此时4个定位偏移属性不会被应用,同时设置z-index属性也是无效的。<!doctype html><html><head><meta charset="utf-8"...原创 2019-03-19 22:39:46 · 488 阅读 · 0 评论 -
css定位属性:z-index
css定位属性position取值:static,relative,absolute,fixed,sticky默认值:static继承性:无static:对象遵循常规流。此时4个定位偏移属性不会被应用,同时设置z-index属性也是无效的。<!doctype html><html><head><meta charset="utf-8"...原创 2019-03-19 23:04:29 · 119 阅读 · 0 评论 -
css3定位属性:top,bottom,left,right
css3定位属性top,bottom,left,right取值:auto,,默认值:auto继承性:无说明定义了元素的上外边距边界(外margin)与其包含块上边界(外padding)之间的偏移距离,取值可以为负值;<!doctype html><html><head><meta charset="utf-8"><...原创 2019-03-19 23:31:24 · 3153 阅读 · 0 评论 -
BFC块级格式上下文
参考链接:https://www.cnblogs.com/lhb25/p/inside-block-formatting-ontext.html转载 2019-03-21 10:50:51 · 114 阅读 · 0 评论 -
清除浮动
清除浮动什么是清除浮动当容器的高度为auto,且容器中的内容存在浮动元素时,容器的高度会不能自动拉升以适应内容的高度(高度塌陷),使得内容溢出到容器外面而影响布局的现象叫做浮动溢出。为了防止该现象的发生而进行的css处理,叫做css清除浮动。浮动溢出的示例<!doctype html><html><head><meta charset="ut...原创 2019-03-21 11:36:37 · 147 阅读 · 0 评论