由 admin 提交于 周一, 02/16/2015 - 14:33 tr:nth-child(even) { background-color: #000000; } 以上方法不适用于IE8及以下版本。 也可用通过jQuery的方法实现: $(document).ready(function() { $("tr:even").css("background-color", "#000000"); }); 标签 CSS jQuery 添加新评论 您的名字 主题 评论 关于文本格式 Restricted HTML 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src> 自动断行和分段。 网页和电子邮件地址自动转换为链接。 验证码 This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. 本站使用的语言 请输入"汉语"
添加新评论