为了账号安全,请及时绑定邮箱和手机立即绑定

我不会,求大佬

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>浮动模型</title>

<style type="text/css">

div{

    width:200px;

border:2px red solid;

    height:200px;

float:left;

}


</style>

</head>

<body>

<div id="div1">栏目1</div>

<div id="div2">栏目2</div><

</body>

</html>

为什么这样出来是一列显示都靠左,不是一行并排然后靠左呢?

正在回答

3 回答

https://img1.sycdn.imooc.com//5c9866670001216710840602.jpg这个样子

0 回复 有任何疑惑可以回复我~

width:200px 改成50px  或者点全屏

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我不会,求大佬

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信