使用vue2实现进度条的效果图如下:
代码如下:(直接在html文件中运行即可)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<style>
#app {
width: 80%;
margin: 10% auto;
text-align: center;
}
.big {
width: 100%