通过position定位实现div底端对齐
内容摘要
复制代码代码如下:
<div style="position:relative;height:100px;width:100px;border:1px solid red">
<div style=";width:100px;position:absolute; bottom:0;left:0;
<div style="position:relative;height:100px;width:100px;border:1px solid red">
<div style=";width:100px;position:absolute; bottom:0;left:0;
文章正文
复制代码
代码如下:<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>
代码注释