我如何附加 text
before
和 after
进度条。
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
<title>JS Bin</title>
</head>
<body>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
<span class="show">60% Complete</span>
</div>
</div>
</body>
</html>
下面是我正在处理的 jsbin。 http://jsbin.com/IBOwEPog/219/edit
最佳答案
尝试
$('.progress-bar').before("Text Before").after("Text After");
关于html - 在进度条前后追加文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24555165/