努力理解引導,我試圖製作一個頭像,看起來像下面的圖像,並保持所有屏幕尺寸的效果,但我似乎沒有得到使用下面的代碼的結果, 幫幫我?使用引導進行文本對齊
.intro {
top:20%;
left:32%;
color: black;
font-weight: bold;
font-size: 18px;
hr {
margin-left:0rem;
width:80px;
}
h1 {
color: green !important;
margin-left: 10rem;
font-weight: bold;
font-size:42px;
line-height: 1rem !important;
}
h3 {
line-height:5rem !important;
padding-bottom: 1rem;
color: black;
font-weight: bold;
font-size: 115px;
}
}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row intro">
<div class="col-md-12">
<div class="row">
<h1 class="what">This is Text</h1>
</div>
<div class="row no-gutters">
<div class="col-xs-12 col-xs-offset-1">
<h1>this is more</h1>
</div>
</div>
<div class="row">
<div class="col-lg-1">
<h3 style="float:left">BIGGER </h3>
</div>
<div class="col-lg-1">
<h1> ?</h1>
</div>
</div>
<div class="row">
<div class="col-xs-5">
<hr/>
</div>
</div>
</div>
</div>
檢查這個https://jsfiddle.net/rsha69yj/ –