Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第181天 请使用纯HTML制作一个进度条 #1367

Open
haizhilin2013 opened this issue Oct 13, 2019 · 4 comments
Open

[html] 第181天 请使用纯HTML制作一个进度条 #1367

haizhilin2013 opened this issue Oct 13, 2019 · 4 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第181天 请使用纯HTML制作一个进度条

@haizhilin2013 haizhilin2013 added the html html label Oct 13, 2019
@hehecat
Copy link

hehecat commented Oct 14, 2019

<progress value="70" max="100">70 %</progress>

@liugezhou
Copy link

progress是HTML5的一个新元素,表示定义一个进度条,用途很广泛,可以用在文件上传的进度显示,文件下载的进度显示,也可以作为一种loading的加载状态条使用。

max属性表示进度条的进度最大值,如果有此值,必须是大于0的有效浮点数。max的默认值是1.
value属性表示进度条完成的进度之,value值的范围为0-max之间。如果没有设置max属性,那么value属性值的范围要在0-1之间。

<progress  max='100'> ----- 加载状态条显示
<progress value='70' max='100'> ----- 正常显示

@360hnjd-fe
Copy link

因各个浏览器UI表现不统一,实际业务中极少用原生progress

@gostfather
Copy link

背景色渐变

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

5 participants