基础选项卡悬停背景颜色

时间:2016-05-25 10:38:40

标签: css zurb-foundation

我正在使用粉底,需要在悬停时更改默认背景颜色,字体颜色和颜色。我尝试过类似的东西,但这对我不起作用:

我的css文件:

@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
public class WebsocketSecurityConfig extends AbstractSecurityWebSocketMessageBrokerConfigurer {

    @Override
    protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) {

        messages                   
                .simpTypeMatchers(SimpMessageType.CONNECT, SimpMessageType.HEARTBEAT, SimpMessageType.UNSUBSCRIBE, SimpMessageType.DISCONNECT).permitAll()       
                .simpDestMatchers("/user/**").authenticated()
                .simpDestMatchers("/app/**").authenticated()
                // catch all
                .anyMessage().denyAll();
    }

    @Override
    protected boolean sameOriginDisabled() {
        //disable CSRF for websockets for now...
        return true;
    }
}

2 个答案:

答案 0 :(得分:3)

这是无效的:

.tabs :hover {
  background-color: #2A2E34;
}

请改为尝试:

.tabs a:hover {
  background-color: #2A2E34;
}

答案 1 :(得分:0)

尝试将此添加到自定义CSS:

.tabs a{
    background: colorname;
    color: colorname;
}
.tabs-title > a:focus, .tabs-title > a[aria-selected='true'] {
    background: colorname;
    color: colorname;
}