扫码关注官方订阅号
js addClass 无效果
header main content footer
header
main content
footer
jquery选择元素,如果是类的话,要加上点。
预览:https://ityanxi.github.io/seg...
$("footer").addClass("fixed-bottom");不对吧,应该是$(".footer").addClass("fixed-bottom")
footer应该用类选择器$(".footer")欢迎到我的网站学习更多JavaScript知识:http://www.aizelasi.club/arch...
已解决,感谢JackHuangcrp205Turner
应该是$(".footer").addClass("fixed-bottom")
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
jquery选择元素,如果是类的话,要加上点。

预览:https://ityanxi.github.io/seg...
$("footer").addClass("fixed-bottom");不对吧,应该是$(".footer").addClass("fixed-bottom")
footer应该用类选择器$(".footer")
欢迎到我的网站学习更多JavaScript知识:http://www.aizelasi.club/arch...
已解决,感谢
JackHuang
crp205
Turner
应该是$(".footer").addClass("fixed-bottom")