随笔分类 -  html

摘要:white-space:normal 阅读全文
posted @ 2020-09-15 15:50 void9main 阅读(241) 评论(0) 推荐(0)
摘要:1、type='text': 创建单行文本输入框(默认的输入类型) 文本输入框,是一个单行的控件,一般是带有内嵌框的矩形 <input type="text" size="30" maxlength="20" placeholder="请输入搜索关键字" /> // 上面代码意思是:input元素类 阅读全文
posted @ 2020-09-05 15:12 void9main 阅读(611) 评论(0) 推荐(0)
摘要:方法1: οnfοcus=this.blur() 当鼠标放不上就离开焦点 <input type="text" name="input1" value="()" οnfοcus=this.blur()>方法2:readonly <input type="text" name="input1" val 阅读全文
posted @ 2020-09-04 16:41 void9main 阅读(656) 评论(0) 推荐(0)
摘要:当之前的input框输入了数据后,下次输入有历史记录问题的解决方法 <input id="vhcl_no" type="text" autocomplete="off"> input的属性autocomplete默认为on其含义代表让浏览器自动记录之前输入的值 如果想要关闭记录可以在input中加入 阅读全文
posted @ 2020-09-04 09:13 void9main 阅读(1008) 评论(0) 推荐(0)