开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜