vs-liveserver提供的结果与手动打开索引的结果不同

时间:2019-09-13 14:32:14

标签: css

可视代码实时服务器扩展完美呈现了我的页面,但如果我手动打开index.html,则会遇到许多实时服务器上未显示的问题。

我搜索了Google,但没有找到任何东西。 Here是文件。

1 个答案:

答案 0 :(得分:0)

这对我有用:

  1. 将两个图像都移动到css文件夹中
  2. 在style.css文件中:更改两个选择器的图像路径: 像这样:
#showcase{
    background-image: url('./showcase.jpg') ;
    background-repeat: no-repeat;
    background-position: center center;
    height: 600px;

}

    .imginfo{
float: left;
min-height: 100%;
width: 50%;
background: url(./photo-1.jpg);
相关问题