CSS容易被人遺忘的overflow : visible

來源:互聯網
上載者:User
css 昨天做某個功能時需要textbox根據內容自動調整大小;後經同事推薦使用overflow : visible,還真是不錯啊。
overflow : visible
不剪下內容也不添加捲軸。假如顯式聲明此預設值,對象將被剪下為包含對象的window或frame的大小。並且clip屬性設定將失效 。
當然別忘記添加MaxLength;否則你的頁面將會被撐爆哦。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.