第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

css怎么實現(xiàn)圖片環(huán)繞的效果,求詳解

css怎么實現(xiàn)圖片環(huán)繞的效果,求詳解

怪盜飯團 2016-05-09 15:10:00
讓標號1/2/3/4/5的一組圖片環(huán)繞標號0的這張圖片
查看完整描述

2 回答

已采納
?
qq_青棗工作室_0

TA貢獻446條經(jīng)驗 獲得超754個贊

<!DOCTYPE?html>
<style>
	*{margin:?0;?padding:?0}
	.box{?width:?330px;?overflow:?hidden}
	.img{
		float:?right;
		width:?100px;
		height:?50px;
		margin:?0?10px?10px?0;
		background-color:?#eee;
	}
	.img:first-child{
		float:?left;
		width:?210px;	
		height:?110px
	}
</style>
<div?class="box">
	<div?class="img">0</div>
	<div?class="img">1</div>
	<div?class="img">2</div>
	<div?class="img">3</div>
	<div?class="img">4</div>
	<div?class="img">5</div>
</div>

我用div給你做個演示,你改為圖片即可。

http://img1.sycdn.imooc.com//573048220001505003220178.jpg

查看完整回答
5 反對 回復(fù) 2016-05-09
?
竹馬君

TA貢獻64條經(jīng)驗 獲得超115個贊

大圖用float,小圖用margin——Css里用nth-child()控制不同小圖的位置。

http://img1.sycdn.imooc.com//57304c710001bae704890216.jpg

HTML部分

<div?class="rect-group">
??<div?class="rect?big">0</div>
??<div?class="small-group">
????<div?class="rect?small">1</div>
????<div?class="rect?small">2</div>
????<div?class="rect?small">3</div>
????<div?class="rect?small">4</div>
????<div?class="rect?small">5</div>
??</div>
</div>

?css部分

.rect-group?{
??width:?320px;
??height:?160x;
??background:?#efefef;
}
.rect?{
??background:?#ccc;
}
.big?{
??float:?left;
??width:?210px;
??height:?110px;
}
.small?{
??width:?100px;
??height:?50px;
}
.small:first-child?{
??margin:?0?0?0?220px;
}
.small:nth-child(2)?{
??margin:?10px?0?0?220px;
}
.small:nth-child(3)?{
??margin:?10px?0?0?220px;
}
.small:nth-child(4)?{
??margin:?-50px?0?0?110px;
}
.small:last-child?{
??margin:?-50px?0?0?0;
}
查看完整回答
4 反對 回復(fù) 2016-05-09
  • 2 回答
  • 2 關(guān)注
  • 2822 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號