html div 堆叠,html – 垂直堆叠div

我正在编写一个井字游戏,并且无法将我的游戏牌垂直堆叠成3×3盒子.

就目前而言,它们是连续9个水平方框,但是当我使用{clear:left;}它只是将它们变成9个垂直方框.

到目前为止,这是我的代码:

#div1 {

width: 80px;

height: 80px;

padding: 10px;

border: 1px solid #aaaaaa;

float:left;

}

#div2 {

width: 80px;

height: 80px;

padding: 10px;

border: 1px solid #aaaaaa;

float:left;

}

#div3 {

width: 80px;

height: 80px;

padding: 10px;

border: 1px solid #aaaaaa;

float:left;

}

Drag the X and O images into the tic-tac-toe board:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值