我想在div前面移动一个按钮。 http://demo.gbaus.com/index.html在网站上,除非您单击最底部,否则GET A Quote按钮不可点击。我希望将它移到前面,这样你就可以点击它。
posotion: absolute;
float: right;
margin: 0px 50px 54px 0px;
font-size: 30px;
line-height: 30px;
color: #fff;
padding: 17px 25px 18px 25px;
z-index: 9999 !important;
现在就是css。
答案 0 :(得分:1)
将您的CSS更改为:
.quote {
background-color: #2380BE;
background-image: linear-gradient(to bottom, #268BCF, #1A5F8C);
background-repeat: repeat-x;
border-radius: 6px 6px 6px 6px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
color: #FFFFFF;
float: right;
font-family: Arial,Helvetica,sans-serif;
font-size: 30px;
line-height: 30px;
margin: 0 50px 54px 0;
padding: 17px 25px 18px;
text-decoration: none;
//Add these
position: relative;
z-index: 100;
}
我从您的网站抓住了这个,而不是问题中显示的代码。如上所述,删除这个“display:absolute”