首页 > 解决方案 > 在闪亮的应用程序中调整嵌入图像的大小

问题描述

参考 Kay https://stackoverflow.com/a/21998722/9373320在此提供的答案,我想将插入的图像尺寸减小到高度和宽度的 50%。

mainPanel( img(src='myImage.png', align = "right"), ### the rest of your code )

请帮忙。

标签: rshiny

解决方案


只需在图像标签中输入高度和宽度:

img(src="src", height="50%", width="50%", align="right")

推荐阅读