css技巧
来源:互联网 发布:足球大师捏脸数据库 编辑:程序博客网 时间:2024/05/18 13:04
一、标准浏览器中固定高度值的容器是不会象IE6里那样被撑开的,那我又想固定高度,又想能被撑开需要怎样设置呢?办法就是去掉height设置min-height:200px; 这里为了照顾不认识min-height的IE6 可以这样定义。 height:auto!important;height:50px; min-height:50px;
二、设置一个div居中
<style type="text/css">
<!--
div {
position:absolute;
top:50%;
left:50%;
margin:-100px 0 0 -100px;
width:200px;
height:200px;
border:1px solid red;
}
-->
</style>
- CSS技巧
- CSS技巧
- css技巧
- css技巧
- CSS技巧
- css 技巧
- css技巧
- CSS技巧
- css技巧
- css技巧
- css技巧
- CSS技巧
- CSS技巧
- css技巧
- css技巧
- CSS技巧
- css技巧
- CSS技巧
- SQL2000 数据库的内外连接
- 设计网站的URL时应该注意的8个要点
- JS细节性代码积累
- .net 网站中英文切换
- Eucalyptus管理员手册--目录
- css技巧
- MSN Editor编辑器漏洞利用
- C++实现Vector类
- sigma(n^m)
- 内存泄露和内存溢出是什么?他们之间的区别是什么?
- Linux and windows Porting
- 用eclipse开发Minix
- Android id的理解
- ExtJS简单示例