【发布时间】:2012-07-17 06:39:43
【问题描述】:
你可以查看我的问题:
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" />
【问题讨论】:
-
你想对图像做什么?
-
天啊,我想知道是否有人会在
form或其他包含元素上提及background-image?没关系,img没有正确包含在源代码中(在 SO 的标记中)。
标签: html css image button textbox