详尽分享隔行换色(1)

简介: 详尽分享隔行换色(1)

隔行变色

*{margin:0; padding:0;}

a{text-decoration:none; cursor:pointer; color: #222;}

table{ width:100%; line-height:30px; border:yellow solid; border-width:1px 0px 0px 1px; text-align:center;}

table td{ border:yellow solid; border-width:0px 1px 1px 0px;}

table th{ border:yellow solid; border-width:0px 1px 1px 0px; font-weight:900; color:blue;}

.one{ background:#C00; background:#D9EDE1;//代码效果参考:http://www.zidongmutanji.com/zsjx/586845.html

}

.two{ background:#09F; background:#ADD9C2; }

.three{ //代码效果参考:http://www.zidongmutanji.com/zsjx/552359.html

background:#039; background:#ccc;}

.four{ background:#FFF; }

$(document).ready(function(){

$("tr").mouseover(function(){

$(this).addClass("four");

})

$("tr").mouseout(function(){

$(this).removeClass("four");

})

$("tr:first").addClass("three");

$("tr:last").addClass("three");

$("tr:even").addClass("one");

$("tr:odd").addClass("two");

}//代码效果参考:http://www.zidongmutanji.com/bxxx/105822.html

);

相关文章
|
算法 Linux C语言
【C++】STL简介
【C++】STL简介
【C++】STL简介
|
8天前
|
域名解析 人工智能 Linux
|
18天前
|
Linux Go 开发工具
手机上跑 DeepSeek 智能体:开源安卓客户端 DSH Go 安装与使用指南
DSH Go 是一款开源安卓客户端,将 DeepSeek Harness 智能体引擎装进手机:免 Root、免 Termux,一键安装即用;支持本机运行(内置 Ubuntu+Node.js)或远程接管电脑会话;具备插话打断、过程折叠、屏幕操控、端到端加密分享等特色功能,真正实现智能体“口袋化”。
16793 62
|
16天前
|
人工智能
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
进不去 Antigravity 或 Gemini,提示所在地区不可用?三步查清 Google 账号关联地区、官方更正表单理由选法与改区注意事项。
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
|
2天前
|
人工智能 安全 网络安全
|
5天前
|
云安全 数据采集 人工智能
|
6天前
|
Linux API iOS开发
【DSH】DeepSeek Harness新手保姆教程(下载+安装+配置+使用,2026最新实测)
DeepSeek Harness(dsh)是 DeepSeek AI 开源的智能体框架,秉持“一切皆插件”理念,支持读文件、改代码、执行命令、处理表格等自动化任务;免费开源,兼容 Win/macOS,需配 API 密钥使用。(239字)
1204 2