【发布时间】:2020-06-27 02:16:58
【问题描述】:
我正在使用 WordPress 建立一个网站。昨天下午一切都很好,然后头球导航突然崩溃了。它首先显示未归因的焦点属性,但通过 a:focus 解决了该问题。它在笔记本电脑上运行良好,但在移动设备上却不行。它在小屏幕上没有活动颜色,但我希望它有。感谢您的帮助!
.site-header .tab a:focus{
color: #FF6508 !important;
outline:none !important;
}
.site-header .tab a:active{
color: #FF6508 !important;
}
.site-header .tab a:hover{
color: #FF6508 !important;
}
.site-header .tab a:visited{
color: #fff !important;
}
.site-header .tab a:after{
color: #FF6508 !important;
}
@media screen and (max-width: 800px){
.site-header .tab a:link{
color: #fff !important;
}
.site-header .tab a:active{
color: #FF6508 !important;
}
}
【问题讨论】:
标签: css wordpress responsive nav