比较好看的Table样式

 #mytable {  
    padding: 0;
    margin: 0;  
    border-collapse:collapse;
}

td {
    border: 1px solid #C1DAD7;  
    background: #fff;
    font-size:11px;
    padding: 6px 6px 6px 12px;
    color: #4f6b72;
}

td.alt {
    background: #F5FAFA;
    color: #797268;
}



 <asp:Repeater runat="server" ID="rptJobList">
                        <ItemTemplate>
                            <table width="750" id="mytable" cellspacing="0">
                                <tr>
                                    <td align="right" class="alt">招聘职位:</td>
                                    <td><%#Eval("post") %></td>
                                    <td align="right" class="alt">学历要求:</td>
                                    <td> <%#Eval("education") %></td>
                                </tr>
                                <tr>
                                   <td align="right" class="alt">性别要求:</td>
                                   <td><%#Eval("sex") %></td>
                                   <td align="right" class="alt">待遇:</td>
                                   <td><%#Eval("salary") %></td>
                                </tr>
                                <tr>
                                    <td align="right" class="alt">联系人:</td>
                                    <td><%#Eval("contact") %></td>
                                    <td align="right" class="alt">联系电话:</td>
                                    <td><%#Eval("phone") %></td>
                                </tr>
                                <tr>
                                   <td align="right" class="alt">信息有效期:</td>
                                   <td><%#Eval("expiredDate") %></td>
                                   <td align="right" class="alt">发布日期:</td>
                                   <td><%#Eval("addDate","{0:d}") %></td>
                                </tr>
                                <tr>
                                  <td align="right" class="alt"><font color="#003399">其他要求:</font></td>
                                  <td colspan="3"><%#Eval("other") %></td>
                                </tr>
                            </table>                          
                            <br />
                        </ItemTemplate>
                    </asp:Repeater>

你可能感兴趣的:(比较好看的Table样式)