标题: div 水平垂直居中代码实例 [打印本页]
作者: xiexie 时间: 2012-7-18 13:17 标题: div 水平垂直居中代码实例
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>系统维护,暂停访问</title>
<style>
*{
margin: 0px;
padding: 0px;
}
#tips{
width: 200px;
height: 200px;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
margin: auto;
text-align:center;
}
</style>
</head>
<body>
<div id="tips">系统维护,暂停访问</div>
</body>
</html>
[ 本帖最后由 xiexie 于 2020-8-14 17:53 编辑 ]
欢迎光临 PHP开发笔记 (http://phpvi.com/) |
Powered by Discuz! 6.1.0 |