如题,ios下正常现在我已有的解决方案是js 计算出 视窗高度,然后给这个元素一个计算出的top值,可以解决但是我想问问有没有纯css的方案demo如下,需在手机内测试<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta name="format-detection" content="telephone=no" /> <title></title> <style> .btm{ position: absolute; bottom: 5px; } </style></head><body> <div style="border: 1px solid #ccc;height: 300px;"> <input type="text" /> </div> <div class="btm">bugbugbugbugbug</div></body></html>
添加回答
举报
0/150
提交
取消