带图像的Bootstrap按钮:悬停在Firefox中不起作用

时间:2017-10-14 10:56:23

标签: html css twitter-bootstrap

我创建了一个包含图像的自举按钮,当悬停亮度时应调整亮度,而其他一切应保持不变。这适用于所有浏览器,除了Firefox,还有其他人遇到过这个问题吗?

CSS:



.btn-framework {
      color: #333;
      background-color: #fff;
      border-color: #ccc;
        width: 100%;
        margin: auto;
            vertical-align: middle !important;
    }
    
    .btn-framework:hover {
        -webkit-filter: brightness(90%);
    	-moz-filter: brightness(90%);
    	-o-filter: brightness(90%);
    	-ms-filter: brightness(90%);
    	filter: brightness(90%);
    }
    
    .glyphicon-menu-right {
        float:right;
    }
    
    .framework-img {
        width: 700px;
        position: absolute;
        left: 30%;
        margin-top: 0px;
    }
    
    .framework-img:hover {
        width: 700px;
        position: absolute;
        left: 30% !important;
        margin-top: 0px;
    }

    <button type="button" class="btn btn-framework" data-toggle="collapse" data-target="#framework1" tyle="text-align:left !important; padding-left:6px !important;">                            
               <span class="framework-title">Phase</span> 
               <img src="images/analyze/1_phase.png" class="framework-img" style="margin-top: 5px;"><span class="glyphicon glyphicon-menu-right"></span>
        </button>
&#13;
&#13;
&#13;

0 个答案:

没有答案