zoukankan
html css js c++ java
使文本框自动适应内容的高度
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <textarea rows=1 cols=40 style='overflow:scroll;overflow-y:hidden;;overflow-x:hidden' onfocus="window.activeobj=this;this.clock=setInterval(function(){activeobj.style.height=activeobj.scrollHeight+'px';},200);" onblur="clearInterval(this.clock);">
运行代码
查看源代码 可以看到js
输入内容试试!
作者:
Cat Qi
出处:
http://qixuejia.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
查看全文
相关阅读:
设计模式- 模板方法模式
什么是Coded UI
请介绍WCF服务
我的WCF之旅(1):创建一个简单的WCF程序
7.3 Models -- Creating And Deleting Records
7.2 Models -- Defining Models
7.1 Models -- Introduction
6.3 Controllers -- Managing Dependencies Between Controllers
6.2 Controllers -- Representing Multipe Models
6.1 Controllers -- Introduction
原文地址:https://www.cnblogs.com/qixuejia/p/1739933.html
最新文章
初识 ZeroMQ
redis过期策略设置
C# 如何保证对象线程内唯一:数据槽(CallContext)
好用的jQuery分页插件
Nginx反向代理配置实例
Centos/Linux动态调整/分区大小(/分区快要满载解决办法)
.dhpcd导致cpu飙升问题
Apache配置负载均衡-实例
使用kill命令终止进程shell脚本
Centos7部署NFS
热门文章
Centos7安装Jdk1.8
Centos7搭建Mysql-5.6,及主从复制。
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
IBM V3500存储恢复步骤实例(linux)
1
leetcode难度及频率
字符串反转的几种方法
统计重复字符串 如 eeefffkkkhjk 得到如下结果 3e3f3khjk;
Hashtable Dictionary List 谁效率更高
两个数组合并排序
Copyright © 2011-2022 走看看