html - 周一到周日自动突出显示工作日单元格。今天是星期二我想突出显示星期二,见附图
解决方案
You could use JavaScript for that.
var date = new Date();
var day = date.getDay(); //Returns 0-6 (sunday-saturday)
You can now add a highlighter class to the current day div depending on the day
variable.
推荐阅读
- c# - 减小视频大小 Xamarin 表单
- c++ - grpc proto 文件生成到 C++ 问题
- c# - 如果没有新的选择,我如何编写更简单的代码?
- scripting - OWASP ZAP:启用脚本
- python - 单击鼠标添加数字?
- loopback4 - Loopback 4 如何在授权组件中访问请求授权令牌头
- python - Django:过滤日期之间的数据| DatetimeField 收到一个天真的日期时间
- html - 为什么 HTML 容器会继承 Body 子元素的所有属性和元素?
- json - 除了 swagger 中定义的字段之外,避免 json 中的其他字段导致 WSO2 APIM 3.1.0 中的验证失败
- java - 将 JdbcOperationsSessionRepository 注入构造函数