1 回答
TA贡献1827条经验 获得超7个赞
您忘记添加$('#progressHTML').progress();
jQuery 的就绪事件,如下所示:
$(document).ready(function() { $('#progressHTML').progress(); });
一个例子是在我制作的 codepen 中工作:
https://codepen.io/mayconmesquita/pen/YzyGvVN
代码:
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
<script>
$( document ).ready(function() {
$('#progressHTML').progress();
});
</script>
<div id="skills" class="skills-containter">
<div class="skills-text-containter">
<h1 class="ui header skills-header">Skills</h1>
<div class="ui blue progress" data-percent="74" id="progressHTML">
<div class="bar"></div>
<div class="label">HTML</div>
</div>
<p class="ui paragraph skills-paragraph">no</p>
</div>
</div>
- 1 回答
- 0 关注
- 72 浏览
添加回答
举报