分享一个网页背景图与div居中的方法
来源:互联网 发布:长城三公主知乎 编辑:程序博客网 时间:2024/05/01 05:51
css 背景图
position: absolute;margin: auto;left: 0;right: 0;top: 0;bottom: 0;background: #dfdfdf url(../images/login_main_bg.jpg);background-position: center;background-repeat: no-repeat;background-attachment: fixed;
div
position: fixed;left: 50%;top: 50%;margin-left: width/ 2;margin-top: height/ 2+200px;
之前没有考虑到屏幕大小,与分辨率的问题会导致效果(背景图,表格div)不居中
0 0
- 分享一个网页背景图与div居中的方法
- 一个div中文字居中的方法
- 如何让一个DIV 居中在网页的中心
- CSS网页布局DIV水平居中的各种方法
- CSS网页布局DIV垂直居中的各种方法
- 【转】CSS网页布局DIV水平居中的各种方法
- div居中的方法
- DIV居中的方法
- 居中div的方法
- div居中的方法
- 网页背景图拉伸的简便方法
- 让div中的背景图居中显示
- DIV里面的图片水平与垂直居中的方法
- DIV里面的图片水平与垂直居中的方法
- 使Div居中的方法
- div垂直居中的方法
- div水平居中的方法
- 居中div的方法总结
- 一、排序(时间复杂度 O(n^2))
- StarUML2 建模工具全平台破解及license验证简要分析
- dcm4che2.0.29版本 ----- DicomImageReadParam
- 资源收集
- 进程控制-创建子进程
- 分享一个网页背景图与div居中的方法
- leetcode217---Contains Duplicate(是否有重复数)
- 开始写博客,毕业一年的收获
- TBD socket client请求,在向远端ip:port发送时,会随机找个本地可用端口去向远端ip:port 发起net io write操作。远端accept后的sockets都共享一个端口
- HDU【1875】A strange lift
- 情怀之下,唯张小龙一人而
- 计算结构体偏移量
- Fragment
- mysql开启远程访问