V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
imningfeng
V2EX  ›  Bootstrap

Bootstrap 按钮按下去的颜色怎么修改?

  •  
  •   imningfeng · 2019-04-16 16:35:52 +08:00 · 9284 次点击
    这是一个创建于 1809 天前的主题,其中的信息可能已经有所发展或是发生改变。

    修改了按钮的伪类,但是还是出现了蓝色背景。

    谷歌只找到了一个类似问题,但是按那个回答的修改还是会出现蓝色背景。 https://segmentfault.com/q/1010000004184231

    无奈本人技术太菜,被这个问题困扰好几天了。 图片 就是图上那个发起的按钮,求大佬帮帮弟弟!

    www.dalaowo.com 账号 test 密码 123456

    lanpong
        1
    lanpong  
       2019-04-16 16:50:54 +08:00   ❤️ 1
    去看看回帖吧,还以为是什么呢
    geying
        2
    geying  
       2019-04-16 16:51:21 +08:00   ❤️ 1
    document.querySelector("#header_publish").addEventListener('click',function(){document.querySelector(".aw-publish-btn a").style.background="#696969"})
    zhuoyan
        3
    zhuoyan  
       2019-04-16 16:58:30 +08:00   ❤️ 1
    .aw-user-nav .login:active,
    .aw-user-nav .login:focus {
    background-color: #808080;
    }
    imningfeng
        4
    imningfeng  
    OP
       2019-04-16 16:58:41 +08:00
    @lanpong 哈哈,解决了。感谢
    imningfeng
        5
    imningfeng  
    OP
       2019-04-16 17:00:36 +08:00
    .btn-primary:active, .btn-primary:focus {
    background-color: 颜色;
    }

    这样加上就可以了,感谢各位大佬。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2716 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:37 · PVG 20:37 · LAX 05:37 · JFK 08:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.