通用css+ascx-热门稿件排行

来源:互联网 发布:it狂人第一季 编辑:程序博客网 时间:2024/09/21 09:20
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="gaojian_ph.ascx.cs" Inherits="controls_gaojian_ph" %><style>.ph_right{ width:100%; text-align:center;}.ph_right h1{ font-size:18px; color:#F30; background:#EEE; border-bottom:1px solid #CCC; height:35px; line-height:35px; font-weight:normal;}.ph_right ul{ margin-top:10px;width:100%;}.ph_right li{ height:25px; line-height:25px; margin-left:20px; text-align:left;}.ph_right li a{ font-size:14px;  margin-left:10px;}.ph_right li span{width:18px; height:18px;line-height:18px; font-size:12px;background:#09F;float:left;text-align:center;color:#FFF; margin-top:3px;}.ph_right li .col{background:#F60;}</style><div class="ph_right"><h1>热门稿件</h1>    <ul>        <asp:Repeater ID="rpt_hot_article" runat="server">            <ItemTemplate>                <span style="display:none"><%=num++ %></span>            <li><span class="<%=num>3?"":"col" %>"><%=num %></span><a href="gaojian_view.aspx?ArticleId=<%#Eval("ArticleId") %>"><%#Eval("ArticlTitle")%></a></li>            </ItemTemplate>        </asp:Repeater>    </ul></div>

0 0
原创粉丝点击