引导工具提示中的图像不起作用

时间:2017-03-02 02:26:25

标签: php html twitter-bootstrap

我在 echo 中有这个简单的工具提示..

echo '<a data-toggle="tooltip" title="<img src=http://cjrtec.com/dist/img/undersold.png/> "><img src="http://cjrtec.com/dist/img/guarantee-best-price.jpg" alt="guarantee best price" class="img-responsive guarantee-best-price" style="float: left;" /></a>';

我的问题是我无法显示图像..

我尝试将元素分离到另一个回声,但它没有用。

我不知道如何处理这种多重引用。

由于

1 个答案:

答案 0 :(得分:0)

这个问题可能对你有帮助 -

Image in tooltip using bootstrap?

This is the fiddle used in this question

Imports System.Data.OleDb

Module Main
  Sub Main()
    Dim oProducts As List(Of String)
    Dim aProducts As String()
    Dim sSqlQuery As String
    Dim oTable As DataTable

    sSqlQuery = "SELECT * FROM ProductItems"
    oTable = New DataTable

    Using oConnection As New OleDbConnection
      Using oCommand As New OleDbCommand(sSqlQuery, oConnection)
        Using oAdapter As New OleDbDataAdapter(oCommand)
          oConnection.Open()
          oAdapter.Fill(oTable)
        End Using
      End Using
    End Using

    oProducts = New List(Of String)

    For iIndex As Integer = 0 To oTable.Rows.Count - 1
      oProducts.Add(oTable.Rows(iIndex)("Product Name"))
    Next

    aProducts = oProducts.ToArray
  End Sub
End Module

The maniputed fiddle