jquery - Bootstrap 进度条; 1%不可能?

标签 jquery html css twitter-bootstrap

参见 http://www.bootply.com/cGT4QMnUZy

1% 的填充看起来更像是 10%。这里有什么问题吗?

<div class="progress progress-striped sm active" style="margin-bottom:5px;margin-top:5px;width:200px">
    <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="1" aria-valuemin="0" aria-valuemax="100" style="width: 1%;">
        <span class="sr-only">1% Complete</span>
    </div>
</div>

最佳答案

有两种方法可以解决您的问题。

  1. 删除 aria-valuenow="1"
  2. 将其更改为十进制值aria-valuenow="1.0"(感谢@Adherence)

在演示中查看两种方式。 BOOTPLY

关于jquery - Bootstrap 进度条; 1%不可能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25268970/

相关文章:

CSS:叠加层在 Chrome 上看起来不错,但在 Firefox 3 中却不行:如何修复垂直偏移?

javascript - 如何在打开另一个div的同时关闭div

javascript - 您如何使用网站上的 Firebug/开发工具调试消失的元素?

HTML5 应用缓存 : How to exclude the htm-file from cache where the manifest is defined

html - 覆盖图像的背景不透明度

css - 有没有办法使用 transform : scale() dynamically

javascript - Firefox Scratchpad 如何使用 jstree 等库

javascript - Masonry 不是 Ember Cli 中的函数

javascript - jQuery on click事件不适用于按钮但适用于其他链接

javascript - 使用外部提交按钮提交两种不同的表单无法正常工作