
正文
使2个div 在一行上显示
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
<!DOCTYPE html><html>
<head>
<meta name="viewport" content="width=device-width" />
<title>CSS</title>
<link href="~/Content/Home.css" rel="stylesheet" /> </head>
<body>
<div>
<div class="div-1 "></div>
<div class="div-2 "></div>
</div>
</body>
</html>CSS样式.div- {
background-color:lavender;
width: %;
height: 400px;
float: left;
}.div- {
background-color: yellowgreen;
width: %;
height: 400px;}






