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

哪里错了?为什么我的img被挤到外面了

<template>

<div class="main">

<div class="right"></div>

<div class="left">

<div class="top">

<img src="../../public/img/首页2.png" />

</div>

<div class="buttom"></div>

</div>

</div>

</template>


<script>

</script>


<style type="text/css">

*{

padding: 0;

margin: 0;

}

.left{

width: 100px;

margin-right: 10px;

float: left;

}

.right{

width: 1000px;

margin-left: 10px;

float: left;

}

.main{

width: 1200px;

margin: 20px auto;

}

.top img{

width: 1000px;

height: 200px;

}

.left,.right{

background-color: blue;

height: 500px;

}

</style>


正在回答

1 回答

嘿嘿我知道了,我前面盒子的左右写反了

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

举报

0/150
提交
取消

哪里错了?为什么我的img被挤到外面了

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号