html输入与背景图像

Ira*_*ili 10 html css

你好我们已经在我的输入文本和文本区域设置了背景图像,但我几乎没有什么问题

我有附图.如何在Name文本输入中更改文本启动位置?

我的文字区域比我的背景图片大

这是带有样式的姓名文本输入

input type="text" name="txtName" class="input" />

.input
{
    border: 0px solid #444444;
    height:39px;
    width:346px;
    background:url(images/Contact_05.jpg) no-repeat right top; 
    color:#fff; 
    padding-left:4px; 
    font-size:20px;
    }
Run Code Online (Sandbox Code Playgroud)

这是我的文字区域

<textarea rows="5" cols="0" class="inputMessage"></textarea>
.inputMessage
{
    border:0px solid #444444;  
    height:386px; 
    width:685px;
    background:url(images/Contact_20.jpg) no-repeat left top; 
    padding-left:4px; 
    color:#fff; 
    font-size:20px; resize:none;
    }
Run Code Online (Sandbox Code Playgroud)

任何建议? 在此输入图像描述

Mat*_*t K 8

在输入上将padding-left设置为更大的值,并减小textarea的宽度.

当您设计表单时,最好在输入周围放置一个临时边框,以查看它们实际位置的位置,以及何时完成,只需将其取下即可.