html浮动到屏幕底部,html – 将浮动元素保留在底部

有我的代码:

https://jsfiddle.net/a4Le1jkz/.

HTML

CSS

.form-container {

box-sizing: border-box;

-moz-box-sizing: border-box;

-webkit-box-sizing: border-box;

position: absolute;

width: 100%;

color: white;

top: auto;

bottom: 0;

overflow: hidden;

padding: 10px;

}

.form-container .twrap {

overflow: hidden;

padding-right: 10px;

}

.form-container textarea {

width: 100%;

height: 30px;

line-height: 30px;

max-height: 120px;

font-size: 1.2em;

resize : none;

}

.form-container .send {

padding: 3px;

height: 30px;

float: right;

}

即使用户按Enter键,我也希望将图像保留在textarea的底部. textearea必须继续调整其宽度.

图像浮动,所以我不知道如何将它保持在底部.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值