search

Home  >  Q&A  >  body text

node.js - 我用node写网站,发现样式表里面引用的图片资源不会加载进来

我是用了bootstrsp的样式表,样式表里面引用了两张图片作为背景图片来做一些图标,问题就出现了,弄了半天,发现node只会请求一些a链接或者通过link或者script标签引用进来的资源,css里面用到的图片不会请求

怪我咯怪我咯2773 days ago524

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 12:04:43

    Is the request unsuccessful or no request at all? This has nothing to do with node, it's a front-end thing.
    If there is no request, it is probably because the style priority is not enough. Try!important

    reply
    0
  • 迷茫

    迷茫2017-04-17 12:04:43

    I was wrong, it turned out to be the path. The bootstrap icons should be placed in the fonts folder

    reply
    0
  • Cancelreply