自定义bootstrap btn不工作铬

时间:2016-11-25 06:29:20

标签: c# html5 twitter-bootstrap css3

我必须在我的网页的bootstrap中自定义按钮。它适用于IE,但不适用于Chrome。我哪里做错了。下面是我的HTML。

       .btn-secondary {
        background-color: #283238;
        color: #05a9d0;
        border-color: #05a9d0;
        border-radius: 0;
        font-family:Helvetica Neue;
        font-size:20px;
        width:auto;
        opacity:0.9;
        border:1px solid;
        height:auto;
  
    }
    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active    {
        background-color: #283238;
        color: #ffffff;
        border-color: #05a9d0;
    }
<div id="banner" class=" text-center vertical-center">
    <div class="slide-top" id="valign-IE" data-plugin-options='{"speed":1500}'>
    <img src="img/logo_page.svg" class="banner-logo"/><br />

    <button  class="btn btn-primaryLogin" onclick="document.location.href='signin.aspx'">Login</button>
    <button type="button" class ="btn btn-secondary" >REQUEST ACCESS FOR SIGNUP</button>
    </div>
    </div>

1 个答案:

答案 0 :(得分:0)

window.location在所有兼容的浏览器上都是可读/写的。

document.location在Internet Explorer中是只读的,但在基于Gecko的浏览器中读取/写入(Firefox,SeaMonkey)。

使用window.location而不是document.location