javascript - 闪亮 - 我想通过使用 introBox 用图片替换按钮样式但不起作用
问题描述
我从 RShiny 画廊中的 app="https://shiny.rstudio.com/gallery/scotpho-profiles.html" 学习。
想实现点击图片放大跳转的功能。
但是在我的程序中,连图片都无法显示,路径还可以。到底是怎么回事?
library(rintrojs)
library(shiny)
ui <- shinyUI(fluidPage(
introjsUI(), # must include in UI
mainPanel(
introBox(
div(class="landing-page-box",
div("title_box", class = "landing-page-box-title"),
div(class = "landing-page-icon", style= paste0("background-image: url(D:/chord_diagram.png);background-size: auto 80%; background-position: center; background-repeat: no-repeat;")),
actionButton("btn", NULL, class="landing-page-button")),
data.step = 1,
data.intro = "hello"
)
)))
server <- shinyServer(function(input, output, session) {
output$mtcars <- renderTable({
head(mtcars)
})
})
# Run the application
shinyApp(ui = ui, server = server)
谢谢。
解决方案
推荐阅读
- tensorflow - RuntimeError:张量 a (256) 的大小必须与非单维 3 的张量 b (32) 的大小相匹配
- javascript - Flask 找不到 Vue 构建的应用程序的资产(css,js ...)文件
- graphql - 尝试在 React Native 项目中设置 graphql 但在查询调用时出错
- android - google-services.json 正在发布中。如何保证 google-services.json 不在 APK 版本中打包?
- python-3.x - vue.js 空 POST 到烧瓶服务器
- assembly - 编译引导加载程序代码,操作码和操作数的组合无效
- json - 解析 jSON 数据后,使用 swif 发送另一个 viewController 并加载 UITableViewCell
- amazon-web-services - AWS Amplify SES sendmail AccessDenied
- r - 邓恩的测试循环数据框的列
- kotlin - mock 验证 lambda 在 mock 中传递