|
1
6
试试这个:
|
|
|
2
0
您可以查看window.location变量并为每个li元素设置一个ID。然后是:
希望它在某种程度上有帮助… |
|
|
3
0
希望这有助于你的概念将有一个输出 在每个特定页面上更改颜色时 var wo=window.location.pathname; jquery(“ul.nav li a”)。每个(function()。{ var this var=jquery(this); var ifid=jquery(this).attr(“href”);
} (}); 如果你喜欢这篇文章,你也可以在 http://linesforme.blogspot.com |
|
|
Jamie · 在CSS链接的文件名中添加Jinja占位符 1 年前 |
|
Mass · 如何在Tailwind CSS v4中创建配置 1 年前 |
|
|
magenta placenta · 将css变量合并为一个变量 1 年前 |
|
ptownbro · 重叠分区标签,同时保持以下所有分区和内容就位 1 年前 |
|
|
john Rizzo · 按钮背景颜色、悬停和活动状态存在问题 1 年前 |