0
我正在嘗試創建一個進度條,無論進度條的大小如何,都可以完整顯示文本。我不確定要添加什麼選項,以便Java應用程序開發中的跨度文本可以大於進度欄本身。BootStrap 3進度條標籤中斷
.resume {
width: 816px;
margin: 48px 48px 48px 48px;
font-size: 13px;
line-height: 16px;
}
.header {
text-align: center;
line-height: 4px;
}
.name {
text-transform: uppercase;
font-size: 32px;
}
.summary h2, .skills h2, .professionalhistory h2 {
text-align: center;
text-transform: uppercase;
font-size: 24px;
}
.skills {
line-height: 13px;
}
.skills p {
margin: 8px 8px 8px 8px;
}
.progress {
text-align: left;
position: relative;
height: 13px;
margin: 8px 8px 8px 8px;
}
.progress span {
display: inline;
position: absolute;
color: black;
}
.progress-bar {
text-align: left;
position: relative;
line-height: 13px;
padding: 0px 10px;
}
.progress-bar span {
display: inline;
}
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<div class="skills" style="line-height: 13px;">
<h2 style="text-align: center; text-transform: uppercase; font-size: 24px;">Possesses Advance Knowledge Of</h2>
<div class="row">
<div class="col-lg-4">
<p style="margin: 8px 8px 8px 8px;">Java Application Development</p>
<div class="progress" style="text-align: left; position: relative; height: 13px; margin: 8px 8px 8px 8px;">
<div class="progress-bar" role="progressbar" aria-valuenow="13"aria-valuemin="0"aria-valuemax="13" style="width:7.69%; padding: 0px 10px;">
<span style="display: inline;">1 Years</span>
</div>
</div>
</div>
</div>
</div>
我想現在這一切是如何顯示的,但我怎麼把你的概念左對齊的所有標籤? – TroyPilewski
嘿,我修改了我的解決方案。它可能需要一些左間距/填充,但你得到了要點。 –
完美!謝謝! – TroyPilewski