标题:formview设置CSS文件
取消只看楼主
fjmaui
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-3-31
结帖率:0
已结贴  问题点数:20 回复次数:0 
formview设置CSS文件
求下面文件的css文件,让版式好看一点
程序代码:
 <div class="center ">
    <asp:datalist ID="Datalist1" runat="server" BackColor="White" 
            BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
            CellSpacing="1" Width="948px" onitemcommand="Datalist1_ItemCommand" 
            onselectedindexchanged="Datalist1_SelectedIndexChanged" >
         <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
         <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
         <ItemStyle BackColor="#DEDFDE" ForeColor="Black" />
         <ItemTemplate >
         <table class="table" width="680" border ="1" align="center">
             <tr>
                 <td colspan="6" style="padding-left:5px" class="style5">
                     文献标题:<%#DataBinder.Eval(Container.DataItem, "LitTit")%></td>
             </tr>
             <tr>
                 <td style="padding-left:5px" class="style1">
                     关键词:</td>
                 <td style="padding-left:5px" class="style4">
                     <%#DataBinder.Eval(Container.DataItem, "Key1")%>
                 </td>
                 <td style="padding-left:5px">
                     <%#DataBinder.Eval(Container.DataItem, "Key2")%>
                 </td>
                 <td style="padding-left:5px" class="style2">
                     <%#DataBinder.Eval(Container.DataItem, "Key3")%>
                 </td>
                 <td style="padding-left:5px" class="style3">
                     <%#DataBinder.Eval(Container.DataItem, "Key4")%>
                 </td>
                 <td style="padding-left:5px">
                     <%#DataBinder.Eval(Container.DataItem, "Key5")%>
                 </td>
             </tr>
        <tr>
         <td  colspan="4"  style ="padding-left:5px"  align="center ">来源:<font color="lime" ><%#DataBinder.Eval(Container.DataItem, "Sou")%></font></td>
        <td colspan="2" style="padding-left:5px">作者:<%#DataBinder.Eval(Container.DataItem, "Aut")%></td></tr>
        <tr><td colspan="6" style="padding-left:5px">
            <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">显示详细</asp:LinkButton>&nbsp;&nbsp;
            <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">PDF下载</asp:LinkButton>
            </td></tr>
        </table>
        </ItemTemplate>
         <SelectedItemStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        </asp:datalist>
    </div>
2014-03-31 21:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-429475-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.064291 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved