这里面不能发图片,真是郁闷! 
我简单描述一下我的需求吧,我需要在 <input type="text"/>标签中添加图片,等用户填写完之后,点击图片进行保存操作。 
请高手指教一下,别告诉我插入背景图片,因为背景图无法onclick。

解决方案 »

  1.   


    <input type="submit" name="submit" style="background:url(images/xxx/xxx.gif) no-repeat; width:70px; height:20px; border:none;" />这样就可以了
      

  2.   

    直接加进去不就好了?...
    <input type="text"><img src=""/></input>
      

  3.   


    <input type="text" style="height:22px;padding-right:32px;border:solid 1px #000;"/>
    <img src="http://www.infoq.com/images/btn-search.gif" style="position:relative;left:-30px;top:3px;" onclick="alert('');"/>
      

  4.   

    楼主可以变通一下,首先,按照你那样做,语义不好,假设无法调用JS和CSS,那你这个表单如何提交?而且,在input type="text"中也无法插入图片。既然用CSS,那还有什么不能处理的呢?<form ...>
    <input type="text" class="ipt" /><input type="submit" class="btn" />
    </form>只要用CSS定义ipt和btn,使得它们看起来像是在一个控件框里就好了,就像bing的搜索框那样,你可以去参考一下。
      

  5.   

    晕倒,<div style="display:block;height:100px;width:100px;background:.." onclick="..."></div>不就可以了,
    或者<a href="#" onclick="..."><img/></a>
      

  6.   

    4楼的,谢谢了,我刚才就去看了bing的,他就是两个input拼起来的