1
引導按鈕有一些文字,當我運行按鈕之外的按鈕上的文字移動,但按鈕是固定大小 如何使按鈕響應文本移動引導按鈕
.div{
float:left;
height:300px;
width:22%;
margin-top:15px;
margin-left:15px;
background-color: #e4f2ff;
position: relative;
}
.div img{
width:100%;
height:180px;
}
.div h1{
font: 500 1.5em Roboto,Arial,Helvetica !important;
}
.div div{
position: absolute;
bottom:0;
width:100%
}
.div div a{
width:50px;
}
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<div class="div">
<img src="dual.png"/>
<h1>Boot From a CD or USB Drive on Any PC</h1>
<div><a href="#" class="btn btn-xs btn-success">Default text here</a></div>
</div>
能有人幫我
刪除'.div div a {width:50px; }'。 – 2015-04-02 08:11:25
你給鏈接的寬度爲50px。你的按鈕也是一個鏈接。 – Sirence 2015-04-02 08:11:47
當我這樣做,我的設計變得奇怪是有任何methed按鈕strech到全部div – romman 2015-04-02 08:13:21