CSS问题:如何让父DIVdisplay排列为inline,子排列为一个div一换行?

2025-04-04 07:27:45
推荐回答(1个)
回答1:

这样写应该可以:
.com{height:auto;width:auto;float:left: overflow:hidden;}

.red,.yellow,.green{width:auto;height:30px; clear:both;}
希望能帮到你。