Jquery.addClass始终无效原因分析_jquery

WBOY
Release: 2016-05-16 17:23:15
Original
1483 people have browsed it

setAdminTabs.js代码中添加如下:

复制代码代码如下:

$("#adminTabs li").mouseover(function(){$(this).addClass("selectedTab")});

始终不起作用,原因如下:
复制代码代码如下:

.selectedTab{background-color:White; border-bottom:1px}

定义两个属性,在admin.css的文件中存在,如下:
复制代码代码如下:

#adminTabs ul li{ float:left; border: #E0E0E0 1px solid; margin-right:10px; padding:5px 10px; line-height:20px; width:80px; text-align:center; background-color:#EEEEEE;}

Jquery使其不起作用
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!