R闪亮图像和去除黑点

huangapple go评论62阅读模式
英文:

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 screenshotR闪亮图像和去除黑点

library(shiny)
ui &lt;- fluidPage(
  tags$li(div(img(src = &#39;iris.jpg&#39;),align = &quot;right&quot;
  )))
server &lt;- 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 &lt;- fluidPage(
  div(img(src = &#39;iris.jpg&#39;),align = &quot;right&quot;
  ))
server &lt;- function(input, output) {}

huangapple
  • 本文由 发表于 2023年6月12日 19:39:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76456303.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定