update
This commit is contained in:
@@ -1,14 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>居中专题</title>
|
||||
<link rel="stylesheet" href="./starter.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="stage">
|
||||
<div class="box">把我放到中间</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>居中专题</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: rgb(255, 248, 238);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.stage {
|
||||
background-color: white;
|
||||
border: 1px solid rgba(255, 156, 7, 0.25);
|
||||
border-radius: 20px;
|
||||
padding: 15px 20px;
|
||||
box-shadow: 0 0 10px rgb(243, 218, 172);
|
||||
width: 150px;
|
||||
height: 70px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.box {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="stage">
|
||||
<div class="box">把我放到中间</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user