【问题标题】:Images not being shown in footer with jquery mobile使用 jquery mobile 时,图片未显示在页脚中
【发布时间】:2014-01-10 12:23:06
【问题描述】:

我正在使用 Jquery 移动版。

我有一个页脚 div。

在那个 div 中,我想显示 2 个图像按钮。

按钮出现,但图像不显示。

这是我的标记:

    <div class="footer-wrapper">
        <div data-role='footer' data-theme='a' data-position='fixed'>
            <div data-role='navbar' id='kms'>
                <table style="width: 100%">
                    <tr>
                        <td style="text-align: center">
                            <asp:ImageButton ID="btnEnterPIN" runat="server" Height="42px" Width="42px" ImageUrl="~/Images/Cute-Ball-Go-icon.png"
                                OnClientClick="return false;" ClientIDMode="Static" />
                        </td>
                        <td style="text-align: center">
                            <asp:ImageButton ID="btnEscape2" runat="server" Height="42px" Width="42px" ImageUrl="~/Images/back_2.png"
                                OnClientClick="return false;" ClientIDMode="Static" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

这就是它的样子:

【问题讨论】:

  • 图片的路径是否正确?检查网络控制台是否看到任何 404?
  • 您好,感谢您的回复。是的,他们是。我什至使用了完整的 url 路径,但仍然没有运气

标签: jquery jquery-mobile mobile


【解决方案1】:

通过使用 html img 而不是 asp img 它可以工作

【讨论】:

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