|
|
@@ -0,0 +1,28 @@
|
|
|
+<!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>
|
|
|
+ .box{
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ background-color: red;
|
|
|
+ color: white;
|
|
|
+ font-size: 30px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 200px;
|
|
|
+ /* display: inline-block; */
|
|
|
+ /* float 表示浮动 可以将块元素横向排列 两个值:left向左 right向右 none不浮动 */
|
|
|
+ float: right;
|
|
|
+
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="box">1</div>
|
|
|
+ <div class="box">2</div>
|
|
|
+ <div class="box">3</div>
|
|
|
+</body>
|
|
|
+</html>
|