모든 장치에 2 행의 레이블이 필요합니다 (이미지의 블록 2). 몇 가지 요구 사항이 있습니다 :CSS/부트 스트랩의 컨테이너 너비에 따라 레이블 크기가 달라집니다.
- 첫 번째 행은 4 개 레이블이
- 두 번째 행이 5 개 라벨
- 처음 3 개 라벨 (
Demo Topic Text 1
,Demo Topic Text
2,Demo Topic Text 3
) 지난 3 개 레이블에 비해 1.5 배 더 큰해야 (Demo Topic Text 7
,Demo Topic Text 8
,Demo Topic Text 9
). - 레이블
Demo Topic Text 3
,Demo Topic Text 4
및Demo Topic Text 5
내가 CSS/부트 스트랩을 사용하여 모든 장치에 대해이 문제를 해결하는 방법을 모르는Demo Topic Text 7
,Demo Topic Text 8
,Demo Topic Text 9.
보다 1.25 배 더 큰해야합니다.
HTML 코드 :
<div class="container">
<div class="row" id="ho_intro_content">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-12 text-center">
<h1>Hello World!</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<div class="ho_in_featured_topics">
<span class="label huge">Demo Topic Text 1</span>
<span class="label huge">Demo Topic Text 2</span>
<span class="label huge">Demo Topic Text 3</span>
<span class="label large">Demo Topic Text 4</span>
</div>
<div class="ho_in_featured_topics">
<span class="label large">Demo Topic Text 5</span>
<span class="label large">Demo Topic Text 6</span>
<span class="label medium">Demo Topic Text 7</span>
<span class="label medium">Demo Topic Text 8</span>
<span class="label medium">Demo Topic Text 9</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<button type="button" class="btn btn-danger btn-lg" id="ho_in_click_me_button" aria-label="Click me!">Click me!</button>
</div>
</div>
</div>
</div>
</div>
CSS 코드 :
.ho_in_featured_topics .label {
background-color: #e8e8e8;
color: #5e5e5e;
font-weight: 400;
}
: http://i.imgur.com/CMplZhZ.png 첫 번째 행은 처음 4 개 레이블을 포함해야합니다. 두 번째 줄에는 마지막 5 개의 라벨이 있어야합니다. – Engo
16px를 다른 크기로 변경하려고 시도했지만 크기를 변경하면 크고 거대한 라벨은 크기가 변경되지 않습니다. – Engo
어떤 아이디어입니까 ......? – Engo