成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

css - textarea換行的時(shí)候會(huì)很被tabbar遮擋?

瀏覽:135日期:2023-01-26 13:47:38

問題描述

textarea設(shè)置的高是100%的,但是屏幕下有個(gè)固定的tabbar,盡管textarea下方加了超出tabbard高度的外邊距,但是在打字換行的時(shí)候,文字還是會(huì)退到tabbar里面!

<!-- 文字域 --> <p style='margin-top:45px;margin-bottom: 45px;'> <textarea rows='' placeholder='說點(diǎn)什么吧'></textarea> </p> <!--底部固定--> <p class='mox-bottombar'> <label> <input type='checkbox' name='checkbox'> <i class='iconfont-bar icon-see'></i> </label> <label> <input type='button' /> <i class='iconfont-bar icon-pic'></i> </label></p>

問題解答

回答1:

現(xiàn)在假設(shè)你底部的固定定位的p的高度是50px,那么你就給這個(gè)textarea的外層盒子設(shè)置一個(gè)padding-bottom:50px;的屬性。

標(biāo)簽: CSS
相關(guān)文章: