
3个div怎样设置才能并列放在网页上,希望好心的哥哥姐姐们给指点下
1个回答
展开全部
在DIV的CSS样式中加上display:inline;属性。
参考代码:
<div style="clear:both;float:left;width:750px;height:38px;">
<div style="clear:both;margin-top:5px;display:inline;font-size:12px;float:left;margin-left:123px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 美女蛇2132</div>
<div style="margin-top:5px;font-size:12px;float:left;margin-left:78px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 灵蛇之珠2754 </div>
<div style="margin-top:5px;font-size:12px;float:left;margin-left:75px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 灵蛇之珠2962</div></div>
参考代码:
<div style="clear:both;float:left;width:750px;height:38px;">
<div style="clear:both;margin-top:5px;display:inline;font-size:12px;float:left;margin-left:123px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 美女蛇2132</div>
<div style="margin-top:5px;font-size:12px;float:left;margin-left:78px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 灵蛇之珠2754 </div>
<div style="margin-top:5px;font-size:12px;float:left;margin-left:75px;width:125px;color:#6A4B2F;height:30px;">香港红牡丹女包 单肩斜跨 灵蛇之珠2962</div></div>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询