123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- body{
- background-color: #f0f4c3;
- }
- .content{
- width: 600px;
- height: 600px;
- background-color: #fff;
- position: absolute;
- top: 50%;
- left: 50%;
- margin-top: -300px;
- margin-left: -300px;
- border-radius: 20px;
- box-shadow: 0 0 10px rgba(0,0,0,0.5);
- padding-top: 20px;
- }
- .content-info h1{
- text-align: center;
- color: #689f38;
- }
- .content-info .info-center{
- width: 300px;
- margin: 0 auto;
- text-align: center;
- }
- .content-info .info-bottom{
- text-align: center;
- color: #999;
- font-size: 12px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="content">
- <div class="content-info">
- <h1>趣味气泡 Position 练习</h1>
- <p class="info-center"><strong>任务:</strong> 观察并理解气泡的定位方式,鼠标悬停气泡试试看!</p>
- <p class="info-bottom">(气泡用 absolute,气泡区用 relative,底部说明条用 fixed)</p>
- </div>
- <div class="content-bubble"></div>
- </div>
- <div class="footer"></div>
- </div>
- </body>
- </html>
|