css - 带有react-circular-progressbar的循环进度条内的换行符?
问题描述
我目前正在尝试在我的反应组件的循环进度栏中设置换行符。我想要百分比和“完成!” 既居中又分离 目前,我已经尝试\n
在 text 道具中放置,但这没有奏效。有什么想法我该怎么做?
react-circular-progress 栏是https://www.npmjs.com/package/react-circular-progressbar。
这是我的代码:
<CircularProgressbar
value={props.percentage}
text={`${props.percentage}% done!`}
counterClockwise
strokeWidth={4}
styles={buildStyles({
// Colors
pathColor: `#EDD9A8`,
textColor: 'var(--theme_color)',
trailColor: 'var(--theme_color',
})}
/>
解决方案
推荐阅读
- r - 错误:(从警告转换)包“glmnet”不可用(对于 R 版本 3.5.3)
- azure - 将 ARM 模板转换为 Terraform
- shopify - 在字符串的第三个字符之后插入一个字符
- regex - 用于查找逗号或新行的正则表达式
- deep-learning - nn.Sequential 的参数太少或太多
- opencv - 如何在opencv中将RGBA图像的黑色部分转换为透明
- javascript - 如何将数组项 --> 转换为单个对象 --> 并将它们放入数组中?
- html - 可以在隐藏的 HTML 输入元素的 Value 属性中设置的最大字符数是多少?
- python-3.x - 如何在 sentinel2 图像上使用 GMM?
- python - 需要对数据框中的数据类型进行计数