r - 在闪亮的应用程序中调整嵌入图像的大小
问题描述
参考 Kay https://stackoverflow.com/a/21998722/9373320在此提供的答案,我想将插入的图像尺寸减小到高度和宽度的 50%。
mainPanel(
img(src='myImage.png', align = "right"),
### the rest of your code
)
请帮忙。
解决方案
只需在图像标签中输入高度和宽度:
img(src="src", height="50%", width="50%", align="right")
推荐阅读
- node.js - SyntaxError:标识符“__dirname”已被声明
- java - 在客户端和服务器之间发送数据作为字节数组
- symfony - 如何在 Symfony 中持久化 OneToMany 关系数据?
- ios - 使用身体 Alamofire 发布请求
- php - Symfony 5.1 选择列表过滤
- javascript - Cognito - adminRespondToAuthChallenge 返回用户的无效会话
- python - 如何避免每天多次抓取网站时下载重复文件(pdf)?
- java - 如何在 Spring 中从组件调用配置中的 SFTP 出站网关操作
- powershell - 在 Powershell 中以自定义格式将数据导出到 CSV 文件
- stripe-payments - Stripe 支付意图是在确认之前还是之后搁置?