首页 > 开发 > CSS > 正文

通过position定位实现div底端对齐

2024-07-11 08:31:16
字体:
来源:转载
供稿:网友

复制代码
代码如下:
<div style="position:relative;height:100px;width:100px;border:1px solid red">
<div style=";width:100px;position:absolute; bottom:0;left:0; text-align:center;"><img src="***.gif" width="20" height="20"></div>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表