BFC(Block Formatting Context,块格式上下文)
具有BFC特性的元素可以看作是隔离了的独立容器,容器里面的元素不会在布局上影响到外面的元素。
在CSS3中,BFC叫做Flow Root。
在CSS2.1中,有三种定位方案——普通流(Normal Flow),浮动(Float)和绝对定位(Absolute Positioning)。
(1)如何触发BFC?
...
分类:
Web程序 时间:
2015-07-18 17:05:12
阅读次数:
116
js
返回顶部
body{margin:0; padding:0}
#to_top{width:30px; height:40px; padding:20px; font:14px/20px arial; text-align:center; background:#06c; position:absolute; cursor:pointer; color:#fff}
window...
分类:
Web程序 时间:
2015-07-18 15:36:05
阅读次数:
168
题目:
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
click to show corner cases.
Corner Cases:
...
分类:
编程语言 时间:
2015-07-17 22:55:33
阅读次数:
157
首页关于我们团队文化公司动态资讯参考业务中心合作银行联系我们
分类:
其他好文 时间:
2015-07-17 20:15:18
阅读次数:
137
Simplify Path
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
click to show corner cases.
Corner Cas...
分类:
其他好文 时间:
2015-07-17 18:55:42
阅读次数:
113
1、绝对定位 html,body{margin:0; height:100%;}#left,#right{position:absolute; top:0; width:200px; height:100%;}#left{left:0; background:#a0b3d6...
分类:
其他好文 时间:
2015-07-17 15:41:42
阅读次数:
134
在eclipse中部署项目web有时候访问jsp会抛出以下类似的异常信息
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp
部署web项目,如果抛出此异常。请保证 standard.jar与jstl.jar 两个jar包是否 在部署的项目中存在,如果不存在,请把
这两个包加入 /WEB-IN...
分类:
Web程序 时间:
2015-07-17 14:04:41
阅读次数:
148
首先应该明白什么是流?这个估计也很容易明白,我就不说了。顺便说下,float设置了这个属性就暂时脱离了流的存在,clear后才会到流里面。position:absolute| fixed | relative| static | inherit默认的HTML流属性其实就是指position:stat...
分类:
Web程序 时间:
2015-07-16 22:01:13
阅读次数:
164
使用CSS3的animation动画属性实现360°无限循环旋转。代码片段: //图片路径自定义CSS样式书写如下:#change{ position:absolute; right:200px; -webkit-animation:change 2s linear infinite;}@-w...
分类:
Web程序 时间:
2015-07-16 21:35:08
阅读次数:
451
按钮中心 **上 **下 **右 **左 css文件.games{ width:500px; height:400px; background-color:pink; position:absolute; } .con{width:200px; height:100...
分类:
Web程序 时间:
2015-07-16 19:04:46
阅读次数:
109