Ich mache einen Fortschrittsbalken. Ich finde den Standard height
des Fortschrittsbalkens bootstrap.js
ist zu viel. Also versuche ich, die height
zu 20%
wie folgt zu reduzieren.Die Standardhöhe des Fortschrittsbalkens ist zu viel
Aber es ändert nicht, was ich will. Weiß jemand, welches Attribut ich ändern sollte?
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
.progress-bar {
height: 20%;
line-height: 2px; }
</style>
</head>
<body>
<div class="container">
<h2>Animated Progress Bar</h2>
<p>The .active class animates the progress bar:</p>
<div class="progress">
<div id="abc" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"></div>
</div>
</div>
</body>
</html>
Hier ist JSBin
Was passiert? – Rayon