groovy - 如何增加 vaadin 进度条的大小(厚度)
问题描述
我如何能够增加 vaadin 进度条的高度(厚度)- 7.6.3。还有我如何显示正在进步的值。例如,在进度条的中间显示完成了多少以及剩余多少。我已尝试使用以下代码,但它始终是默认大小。
_progress.setWidth("100%");
_progress.setHeight("100%");
我也厌倦了使用 css 之类的东西,
_progress.setCaption(" ");
_progress.setCaptionAsHtml(true);
_progress.addstylename("progress");
我在 .css 中定义的“.progress”在哪里
.progress1 {
color: black;
text-align: right;
font-size: 2em;
font-weight: bold;
height: 100%;
}
解决方案
您必须将包装器包含到您的样式规则中,而不是仅为您的进度条定义样式。
.v-progressbar-fat .v-progressbar-wrapper {
height: 20px;
}
如果您将此添加到样式表并将样式名称“fat”应用于进度条,它的高度将更改为 20px(或您希望的任何数量)
推荐阅读
- angular - Angular 2 scrollIntoView 不滚动
- python - 动态编程:递归+记忆 vs 循环+列表
- jquery - 带有 jquery load() 函数的非常困难的脚本不想正常工作
- php - 当他通过另一个网站访问我的网站时为用户浏览器设置cookie
- xpath - 基于 XPATH 中属性中的多个条件选择元素
- javascript - 在使用谷歌应用程序时如何动态更改窗口大小?
- asp.net-core-mvc - 如果 url 中未指定文化,则重定向到默认文化
- linux - 如何防止 Linux 设置 TCP MSS 标头选项?
- arm - Atmel SAM3X8E 在硬复位后丢失 VTOR
- cloud-foundry - 在 PCF 中启动 spring-cloud-dataflow-server-cloudfoundry-1.7.3.RELEASE 时出错