英文:
R shiny image and removing black dot
问题
当在使用 R Shiny 并添加图像时,我在仪表板的左上角出现了一个黑点。我尝试使用填充但仍然无法移除它?我在下面粘贴了一个可重现的示例,并添加了一个截图[![在此输入图片描述][1]][1]
[1]: https://i.stack.imgur.com/6uAGn.png
library(shiny)
ui <- fluidPage(
tags$li(div(img(src = 'iris.jpg'),align = "right"
)))
server <- function(input, output) {}
英文:
When using R shiny and adding an image, I get a black dot appearing on the dashboard on the upper left hand corner. I've tried using padding but I still can't remove it? I paste below a reproducible example and also add a screenshot
library(shiny)
ui <- fluidPage(
tags$li(div(img(src = 'iris.jpg'),align = "right"
)))
server <- function(input, output) {}
答案1
得分: 2
以下是翻译好的内容:
"The dot you see is the dot from the 'li' element. 'li' is used to make lists, with dots or squares at the beginning. Just remove tags$li
and the dot won't be there anymore."
library(shiny)
ui <- fluidPage(
div(img(src = 'iris.jpg'), align = "right")
)
server <- function(input, output) {}
英文:
The dot you see is the dot from the "li" element. "li" is used to make lists, with dots or squares at the beginning. Just remove tags$li
and the dot won't be there anymore
library(shiny)
ui <- fluidPage(
div(img(src = 'iris.jpg'),align = "right"
))
server <- function(input, output) {}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论