input 只读不能修改

方法1: onfocus=this.blur() 
<input type="text" name="input1" value="中国" onfocus=this.blur()>

方法2:readonly 
<input type="text" name="input1" value="中国" readonly>

<input type="text" name="input1" value="中国" readonly="true">

方法3: disabled 
<input type="text" name="input1" value="中国" disabled>

时间: 2024-07-29 10:56:33

input 只读不能修改的相关文章

linux开机自检配置文件fstab变只读无法修改问题

控制linux开机自检的配置文件是/etc/fstab,在最近用的服务器中,发现fstab变成了只读权限,无法修改. 解决方法:RH5下,因磁盘改变,而导致系统停在Ctrl+d,此时需输入密码进入修改fstab文件,把相应的磁盘挂载点注释或删除掉即可.但在rh5下,此时进入后是没有写权限的,这时候修改fstab时总显示只读无法更改保存这里告诉大家一条命令,先退出vi,直接在命令行输入下面命令就可顺利编辑保存vi操作了. $mount -o remount,rw /       注意逗号之间没有空

input placeholder 颜色修改

方法一: ::-webkit-input-placeholder { /* WebKit browsers */ color: #fff; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #fff; opacity: 1; } ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #fff; opacity: 1; } :-ms-input-placeholder { /*

Word 只读模式修改

一.设置只读模式: 方法一: 打开目标文件,点击另存为,如下: 2.点击常规选项,勾选'建议以只读方式打开文档,也可以在此页给文档加密: 方法二: 在工具栏-->审阅--->限制编辑: 二.更改只读模式 法一: 右击目标文件,选择属性: 法二: 同标题一,在限制编辑里面修改 原文地址:https://www.cnblogs.com/jasonjan/p/10316005.html

表单之input的样式修改

修改placeholder字体颜色 html5为input添加了原生的占位符属性placeholder,高级浏览器都支持这个属性,例如: <input type="text" placeholder="热门推荐" value=" ">默认的placeholder字体颜色是呈浅灰色,如果想改变这个默认颜色,解决方案如下: input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ col

input框中修改placeholder的样式

有时间input标签的placeholder属性会出现问题,下面是修改placeholder的样式demo input::-webkit-input-placeholder{ color:red; font-size:20px; } input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color:red; font-size:20px; } input:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */

input(file)样式修改及上传文件名显示

实现思路: a标签包裹input元素 设置a标签为上传按钮的样式,相对定位 设置input为透明,绝对定位,覆盖到a上面 效果:看到的按钮是a的样式,点击时实际是点击input元素.样式和功能都具备 html代码: <a href="javascript:;" class="file gradient">选择文件 <input type="file" > </a> CSS代码: .file { position

HTML5 input placeholder 颜色修改

input::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } 主要是webkit内容浏览器 参考: http://www.jb51.net/html5/171764.html

/etc/fstab 只读无法修改的解决办法

没事闲着无聊给磁盘分区,导致Ubuntu载入时无法识别/路径,查找方法修改/etc/fstab文件夹,在里面增加UUID启动条目,但是却发现即使在root权限下也无法对此文件进行修改.解决办法如下: mount -o remount,rw / 重新挂载为读写模式,顺利修改.

input.file样式修改

<!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><meta http-equiv="Content-Typ