亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

代碼
提交代碼
<!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> /* 清除默認樣式 */ * { padding: 0; margin: 0; } /* 令html和body全屏顯示, 并有一個灰色背景 */ html, body { height: 100%; background: gray; } /* 找到直接父元素 */ body { /* 顯示為彈性盒子 */ display: flex; /* 令其子元素在水平方向上均勻分布 */ justify-content: space-evenly; } div { /* 這里類似于width: 48% */ flex-basis: 48%; /* 給個高度 */ height: 100%; /* 白色背景 */ background: white; } </style> </head> <body> <div></div> <div></div> </body> </html>
運行結果