Html
    Css
    Js

    
                        
/*input_box*/
.input_box {
	width:640px;
	margin:20px auto 0 auto;
}
.input_box .input_title {
	width:620px;
	margin:0 auto;
}
.input_box .input_title h4 {
	font-family:"Microsoft YaHei";
	font-size:24px;
	letter-spacing:0;
	color:#656565;
	font-weight:normal;
	line-height:24px;
}
.input_box .input_content {
	width:620px;
	margin:10px auto 0 auto;
}
.input_box .input_content input {
	width:618px;
	height:60px;
	text-indent:20px;
	font-family:"Microsoft YaHei";
	font-size:24px;
	letter-spacing:0;
	color:#656565;
	background-color:#f7f7f7;
	font-weight:normal;
	line-height:60px;
	border-radius:4px;
	border:1px solid #cecece;
}
.input_box .test {
	display:none;
	width:620px;
	margin:10px auto 0 auto;
}
.input_box .test span {
	font-family:"Microsoft YaHei";
	font-size:20px;
	font-weight:normal;
	color:#ff2121;
	line-height:20px;
}
.input_box_mistake {
	background-color:#fff1f1;
	padding-top:10px;
	padding-bottom:10px;
}
.input_box_mistake .test {
	display:block;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

input一键删除value值

很简单的,不明白的留言哦

0