2016-03-28 9 views
0
<div class="col-md-6"> 
           <b> 
            <asp:Label ID="Year" runat="server" Text='<%# Eval("Ad_Year") %>'></asp:Label><br /> 
           </b> 
           <b> 
            <asp:Label ID="Transmission" runat="server" Text='<%# Eval("Ad_Transmission") %>'></asp:Label><br /> 
           </b> 
           <b> 
            <asp:Label ID="FuelType" runat="server" Text='<%# Eval("Ad_FuelType") %>'></asp:Label><br /> 
           </b> 
           <b> 
            <asp:Label ID="Millage" runat="server" Text='<%# Eval("Ad_Millege") %>'></asp:Label><br /> 
           </b> 
           <b> 
            <asp:Label ID="DateCreated" runat="server" Text='<%# Eval("Ad_Created") %>'></asp:Label><br /> 
           </b> 
           <b> 
            <asp:Label ID="Price" runat="server" Text='<%# Eval("Ad_Price") %>'></asp:Label><br /> 
           </b> 
          </div> 

das ist mein Code. Ich möchte Bild/Symbol des Jahres, Millage, Kraftstofftyp und alles vor ihnen hinzufügen. Bitte sag mir, wie ich das mache. This is how it is looking like. I want to show icon before them.setzen Bilder/Symbole vor asp: label

Antwort

0

Sie können versuchen, Ihre Etiketten in einer Tabelle, wie im folgenden Beispiel (mit 1 Zeile/tr pro Etikett und Symbol)

<table> 
    <tr> 
     <td> 
      <img url='SomeIcon.png' /> 
     </td> 
     <td> 
      <asp:Label runat="server" /> 
     </td> 
    </tr> 
    <tr> 
     <td> 
      <img url='SomeIcon2.png' /> 
     </td> 
     <td> 
      <asp:Label runat="server" /> 
     </td> 
    </tr> 

    ... 

</table> 
0

Ich schlage vor, Sie verwenden Divs Verpackung, da sie verantwortlich mehr sein :

<div class="row"> 
    <div class="col-sm-6"> 
     <img width="200" heigth="200px" src="https://s-media-cache-ak0.pinimg.com/736x/e6/ae/55/e6ae554a65f4dd2f92b0f737001fea83.jpg" alt=""> 

    </div> 

    <div class="col-sm-6"> 
     <div> 
     <strong>Car</strong> 
     </div> 
     <div> 
     <strong>Model</strong> 
     </div> 
     <div> 
     <strong>Engine</strong> 
     </div> 
     <div> 
     <strong>Tires</strong> 
     </div> 
     <div> 
     <strong>Etc</strong> 
     </div> 
    </div> 
    </div> 
Verwandte Themen