HTML标签的使用

html禁止input文本框 文本域输入

disabled 属性规定应该禁用 input 元素。被禁用的 input 元素既不可用,也不可点击,也是不能选择。可以设置 disabled 属性,直到满足某些其他的条件为止(比如选择了一个复选框等等)。当然,我们也可以就需要通过 JavaScript 来删除disabled值,将input元素的值切换为可用

<input type="text" name="amount"  disabled="disabled" class="InputBorder" size="30" style="height:25px" />

 

readonly 属性规定输入字段为只读。只读字段是不能修改的。不过,用户仍然可以使用tab键切换到该字段,还可以选中或拷贝其文本。

<input type="text" name="amount"  readonly="readonly" class="InputBorder" size="30" style="height:25px" />

 

display:none   display:block  html中隐藏显示

style="cursor:pointer"> 样式·使鼠标变成小手形状

placeholder="用户名"     登录框默认显示,注意兼容性(html5属性)

iframe and  frameset 框架部署

 

表格鼠标移动样式

onmouseover="this.style.background='#CDE6EB'" onmouseout="this.style.background='#fff';"

 

posted @ 2014-12-11 15:43  流年沉默的如此苍凉╰╮  阅读(136)  评论(0编辑  收藏  举报