![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
Bo年再无木小白
http://write.blog.csdn.net/postlist
展开
-
css position实现自适应
css position实现自适应原创 2015-01-20 08:46:11 · 2568 阅读 · 0 评论 -
position ="absolute" 与 position="fixed的异同"
position ="absolute" position="fixed" 相同点 第一,完全脱离标准文档流 第二,未设置偏移量时,都定位在父元素左上角 不同点一: 设置偏移量时,偏移量的基准 absolute 1.无已定位的祖先元素,以为基准 2.有已定位的祖先元素,以最近的父元素的为基准偏移 fixed 有无已定位的祖先元素都以浏览器的可视窗口为基准偏移 不原创 2015-01-22 15:30:28 · 1539 阅读 · 0 评论 -
CSS清浮动处理(Clear与BFC)
在CSS布局中float属性经常会被用到,但使用float属性后会使其在普通流中脱离父容器,让人很苦恼 1 浮动带来布局的便利,却也带来了新问题 1 doctype html> 2 html lang="en"> 3 head> 4 meta charset="UTF-8"> 5 title>Clear floattitle> 6 style转载 2015-02-14 10:19:31 · 505 阅读 · 0 评论