...
首页> 外文期刊>A List Apart >Expanding Text Areas Made Elegant
【24h】

Expanding Text Areas Made Elegant

机译:扩大文字区域,使其优雅

获取原文
           

摘要

An expanding text area is a mutli-line text input field that expands in height to fit its contents. Commonly found in both desktop and mobile applications, such as the SMS composition field on the iPhone, it’s a good choice when you don’t know how much text the user will write and you want to keep the layout compact; as such, it’s especially useful on interfaces targeted at smartphones. Yet despite the ubiquity of this control, there’s no way to create it using only HTML and CSS, and most JavaScript solutions have suffered from guesswork, inaccuracy, or a lack of elegance … until now.
机译:扩展文本区域是多行文本输入字段,其高度会扩展以适合其内容。通常在桌面和移动应用程序中都可以找到,例如iPhone上的SMS组合字段,当您不知道用户会写多少文本并且想要保持布局紧凑时,这是一个不错的选择。因此,它在针对智能手机的界面上特别有用。尽管该控件无处不在,但仍然无法仅使用HTML和CSS来创建它,并且大多数JavaScript解决方案都遭受猜测,不准确或缺乏优雅的困扰……直到现在。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号