文本输入框 文字左移输入示例代码

2020-04-30 14:58:06易采站长站整理

截图如下:
 

代码如下;


<html>
<head>
<meta charset=”UTF-8″>
<title>文本输入框 文字左移输入</title>
<style>
.one{
padding-left: 25px;
}
.two{
padding-left: 0px;
}
</style>
</head>
<body>
文本输入框 文字左移输入:

<input type=”text” class=”one” value=’padding-left: 25px’ />

<input type=”text” class=”two” value=’padding-left: 0px’ />

</body>
</html>