开发者

How to put a strikethrough in a listview or repeater

开发者 https://www.devze.com 2023-02-23 14:59 出处:网络
I don\'t know to put in strikethrough in a listview or re开发者_如何学JAVApeater.. I want to have a strikethroughin description only..

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

精彩评论

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