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