html - 我如何 'send an image back' ,在文本框后面?

标签 html css image button textbox

你可以查看我的问题:

enter image description here

http://i.stack.imgur.com/cGoEU.png

该图像覆盖了我的登录表单。如何让它移到文本框和登录按钮后面?

这是我的代码:

<img src="C:\Users\George\Documents\HTML\My Local Soccer\pics\icons\gradient box.gif" 
    style="position:absolute; top: 155px; left: 480px; width:auto; height:auto;">
<input type="text" class="tb7" value="Username" style="margin-left: 563px" 
    maxlength="20" onfocus="if(this.value == 'Username') {this.value='';}" />         
</br>
<input type="text" class="tb8"  value="Password" style="margin-left: 563px;"   
    maxlength="20" onfocus="if(this.value =='Password') {this.value='';}"/>
<input type="image" height="25px"   width="67px" style="vertical-align:top;"
    src="C:\Users\George\Documents\HTML\My Local Soccer\pics\icons\sign in.gif" />

最佳答案

试试 style="z-index:-5;"和位置相对或绝对

关于html - 我如何 'send an image back' ,在文本框后面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11488730/

相关文章:

iphone - 如何在 iPhone 上执行 HTML 文件( objective-c )?

css - 使用 id :hover css3 or html5 延迟加载背景图像

javascript - 将元素始终定位在死点的流体图像上方?

image - 比较 Blob 的质心与边界框的中心

python - 将原始数据保存为 tif

javascript - 单选按钮未切换

javascript - hasClass jQuery 总是给出 "false"

javascript - div 中垂直居中图像

javascript - 无法使用 MEAN 堆栈显示图像

php - 仅使用 javascript 生成和保存/下载文件