我试图做到这一点样机2个按钮......围绕股利引导
...我来到这里,我需要把图像上的这些按键2点。我设法把一个按钮,但第二个不工作。这是第一个按钮的代码。
#img_container {
position:relative;
display:block;
text-align:center;
}
.button {
position:absolute;
bottom:50%;
right:50%;
width:200px;
height:50px;
margin:0px -100px -15px 0px;
background-color: rgb(246, 175, 228);
border: none;
box-shadow: 4.5px 7.794px 5px 0px rgba(0, 0, 0, 0.094);;
font-size: 1.3em;
color: white;
text-transform: uppercase;
}
<div id="img_container" class=" "text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
<img src="img/homepicture.jpg"/>
<button class="button">lazybop</button><br>
<button class="button1">see the products</button>
</div>
然后我试图使用相同的代码,而只是降低底层财产的数量到40%,但它仍然在同一个地方。
.button1 {
position:absolute;
bottom:40%;
right:50%;
width:200px;
height:50px;
background-color: rgb(246, 175, 228);
border: none;
box-shadow: 4.5px 7.794px 5px 0px rgba(0, 0, 0, 0.094);;
font-size: 1.3em;
color: white;
text-transform: uppercase;
}
你有'类的附加双引号=”“文本中心COL-LG-12 COL-MD-12同事sm-12 col-xs-12“' –