【问题标题】:Use image in place of <button id>使用图像代替 <button id>
【发布时间】:2014-07-29 18:38:53
【问题描述】:

http://protected-river-1861.herokuapp.com/

我尝试了各种代码,但似乎都不起作用,充其量我得到一个“找不到图像”。

<button id="go-search">Go!</button>

我已将按钮插入到我的 public/images 文件夹中,我只需要告诉代码加载它。

谢谢!

【问题讨论】:

  • 你试过了吗?你有更多的代码吗?在我看来,您应该先看一些 html 和 php 的基本教程,然后再执行此操作。
  • 似乎对我来说一切正常。 “创客学院”有什么意思吗?
  • 我不在那里学习,这是他们提供的免费教程的一部分。我在这里是一个完整而彻底的初学者..

标签: html image button


【解决方案1】:

像这样添加css?

#go-search {
    background: url("/images/logo.gif") no-repeat;
    border: medium none;
    cursor: pointer;
    height: 100px;
    width: 200px;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多