java - 如何在primefaces中设置旋钮的位置
问题描述
我是 Spring Boot 和 primefaces 的新手。
我怎样才能对齐旋钮,使它们在同一行,而不是一个在另一个之下。那么如何将它们对齐在行中,而不是在列中?
<div class="card">
<p:panel header="Statistiken" style=" border: none;">
<!-- <div class="p-grid p-text-right"> -->
<div class="p-grid ui-inline">
<!-- <div class="p-grid ui-fluid"> -->
<h5>Played games</h5>
<div class="knob-container ui-inline">
<p:knob disabled="true" value="10"/> <!-- value=#{user.playedGames} -->
</div>
<h5>Games Won</h5>
<div class="knob-container ui-inline">
<p:knob disabled="true" value="7" foregroundColor="red" backgroundColor="#00000"/> <!-- value=#{user.gamesWon} -->
</div>
<h5>Games Lost</h5>
<div class="knob-container ui-inline">
<p:knob disabled="true" value="3" foregroundColor="blue" backgroundColor="#0000FF"/> <!-- value=#{user.gamesLost} -->
</div>
</div>
</p:panel>
</div>
解决方案
推荐阅读
- android - 电报源代码构建失败
- c++ - 错误:从 'char' 到 'const char' 的无效转换 [-fpermissive] strcat(encrypted, key[i]);
- javascript - 未捕获的类型错误:从 wp 检索标签时无法读取 null 的属性“长度”
- numpy - 关于 Numpy 符号的困惑
- python - 如何在 Google 的 Colab 中安装 Python 包?
- c - 如何在 C 中创建一个 unicode 变量?
- r - 使用 R 将数据框从日历年重新排序为水年
- php - 如何使用sql server检查用户名是否已在PHP中使用
- python - Pycharm在制作新项目时不显示框架选择
- javascript - Ethereum web3 sendSignedTransaction:资金不足。帐户...没有足够的资金。需要 750000000000000 并得到:0