首页 > 其他分享 >自学HTML做手机网页.

自学HTML做手机网页.

时间:2022-11-06 02:11:08浏览次数:45  
标签:网页 color float height width HTML background 自学 left

<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>     <style>         .box {             width: 1226px;             height: 615px;             background-color: pink;             margin: 0 auto;
        }         .left {             width: 234px;             height: 615px;             background-color: purple;             float: left;         }         .right {             width: 992px;             height: 615px;             background-color: skyblue;             float: right;         }         .right>div {         width: 234px;         height: 300px;         background-color:pink;         float: left;         margin-left: 14px;         margin-bottom: 14px;         }     </style> </head> <body>     <div class="box">         <div class="left">小baby</div>         <div class="right"><div>1</div>         <div>2</div>         <div>3</div>         <div>4</div>         <div>5</div>         <div>6</div>         <div>7</div>         <div>8</div>     </div>     </div> </body> </html>

标签:网页,color,float,height,width,HTML,background,自学,left
From: https://www.cnblogs.com/ELiaukRain/p/16861833.html

相关文章