首页 > 技术文章 > 去掉input text后面的叉

wujixing 2016-09-09 15:20 原文

如题

input[type=text]::-ms-clear{
				display: none;
				
			}
			input::-webkit-search-cancel-button{
				display: none;
			}  
			input.t {
				border:1px solid #fff;
				background:#fff; 			
	 			padding-left:5px; 
	 			height:30px; 
	 			line-height:30px ;
	 			font-size:12px;
	 			font-color: #004779;
	 			
	 		} 

下面的样式是input控件里面的样式, 调用的只需  class="t"

推荐阅读