gpt4 book ai didi

jquery - 更改图标图像的CSS代码

转载 作者:太空宇宙 更新时间:2023-11-04 15:40:59 24 4
gpt4 key购买 nike

我将下面的代码设置为导航按钮的图标图像。当按钮变为事件状态以插入另一个图标图像时,如何更改此代码?我正在使用 jquery 手机。谢谢

.nav-glyphish-example .ui-btn .ui-btn-inner {
padding-top: 40px !important;
}
.nav-glyphish-example .ui-btn .ui-icon {
width: 30px!important;
height: 30px!important;
margin-left: -15px !important;
box-shadow: none!important;
-moz-box-shadow: none!important;
-webkit-box-shadow: none!important;
-webkit-border-radius: 0 !important; border-radius: 0 !important;
}

#home .ui-icon {
background: url(glyphish/icons/icons-gray/983-calendarblue@2x.png) 50% 50% no-repeat;
background-size: 24px 22px;
}

最佳答案

#home .ui-icon { 
background: url(normal.png) 50% 50% no-repeat;
}
#home .ui-icon:active {
background: url(active.png) 50% 50% no-repeat;
}
#home .ui-icon:hover {
background: url(hover.png) 50% 50% no-repeat;
}

关于jquery - 更改图标图像的CSS代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12134214/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com