在闪亮服务器上的闪亮中应用custom.css

时间:2020-03-07 10:27:34

标签: css r shinydashboard shiny-server

以下代码位于我的ui.R

tags$li(
    a(href = 'https://org/SitePages/Homepage.aspx',
      list(
        tags$b(class = "material-icons",
               style = "color: #fff; font-size: 19px",
               "apps"),
        tags$b("FH-LB")
      ),
      style = "padding-top:15px; padding-bottom:15px; font-family: 'MarselisforRuVW05-Regular', 'Arial'; font-size: 25px"),
    class = "dropdown",
    style = "margin: 0 0 0px; padding-right: 20px;"
  ),
.
.
.


 dashboardBody(
        tags$head(tags$link(rel = "shortcut icon", href = "./www/RuV_Favicon_Plus.svg")),
        tags$head(includeCSS("./www/custom.css"),
          tags$link(rel = "stylesheet", type = "text/css")#, href = "custom.css")
        ),

我的www文件夹如下所示: enter image description here

问题:在本地笔记本电脑上,它运行良好。但是,在Linux-Server上:颜色是经过修饰的,但不是font-family(请参见代码)。 我在代码中将相对路径更改为绝对路径,但是没有成功。有想法吗?

在浏览器中,我收到以下错误消息(按F12键):

Firefox cannot connect to the server below wss://rmdevel.com/aktuell/__sockjs__/n=SnK2aqx2idJprHGC5m/653/9sqrw73j/websocket.

0 个答案:

没有答案