Html
    Css
    Js

    
                        
.myinput {
	width:100px;
	border:solid 1px red;
	display:inline-block;
	vertical-align:top;
	vertical-align:top;
	height:20px;
	font-size:12px;
	line-height:20px;
	overflow-x:hidden;
}
.input-text {
	display:block;
	margin:0px 5px;
	height:inherit;
	outline:0;
	white-space:nowrap;
	overflow-x:hidden;
}

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

div模拟的input输入框

0