How to put a strikethrough in a listview or repeater
I don't know to put in strikethrough in a listview or re开发者_如何学JAVApeater.. I want to have a strikethrough in description only..
here my asp code:
<div class="price" CssClass="Sline"><%#RenderPrice2((decimal)Eval("lb_sellingprice"))%></div>
thanks!
In your description just add a CSS class and give it this rule:
.yourCSSClass {text-decoration: line-through;}
<asp:Label ID="lb_titleLabel" runat="server" CssClass="center-head" Text='<%# Eval("lb_title") %>' />
<p><asp:Label CssClass="yourCSSClass" ID="lb_descriptionLabel" runat="server" Text='<%# Eval("lb_description") %>' /></p>
精彩评论