作家
登录

比较平滑的js控制textaera的高度

作者: 来源:www.28hudong.com 2013-03-30 03:00:24 阅读 我要评论

佐佐制造 --textarea---addheight /* Reset style */ * { margin:0; padding:0; word-break:break-all; } body { background:#FFF; color:#333; font:12px/1.4em Helvetica, Arial, sans-serif; } h1, h2, h3, h4, h5, h6 { font-size:1em; } a { color:#333; text-decoration:none; } a:hover { text-decoration:underline; } ul, li { list-style:none; } fieldset, img { border:none; } input, textarea, select, button { font:12px Helvetica, Arial, sans-serif; } .button { padding:0 10px; height: 22px; border: 1px solid; border-color: #EEE #999 #999 #EEE; background: #DDD; color: #333; line-height: 20px; cursor: pointer; margin-left:2px; } .submit { padding:0 10px; height: 22px; border: 1px solid; border-color: #DDD #CC8305 #CC8305 #DDD; background: #FFA200; color: #FFF; line-height: 20px; letter-spacing: 1px; cursor: pointer; } /* edit style */ #edit { width:300px; margin:50px; } .edit_caption { width:100%; overflow:hidden; margin-bottom:1px; overflow:hidden; } .edit_caption span { display:block; float:left; margin:0 1px; padding:4px 10px; background:#DDD; cursor:pointer; } .edit_caption span:hover { background:#EEE; } #edit textarea { width:300px; height:80px; margin:0; padding:0; } 放大 缩小 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

  推荐阅读

  js tr控制下面的tbody隐藏和显示

用的核心代码function $(obj){ return document.getElementById(obj); } window.onload = function(){ var table = document.getElementById("myTable"); //如果在表格区域内产生单击 table.oncli>>>详细阅读


本文标题:比较平滑的js控制textaera的高度

地址:http://www.17bianji.com/kaifa2/JS/29523.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)