background标签color有效,但是image无效

.total{
   clear:left;
   text-align:center;
   width:100%;
   height:100%;
   background:url('C:\Users\hasee\Desktop\money.jpg') no-repeat;
   background-size:100% 100%;
 }

上面的无效如果写成下面的就有效。。路径真的没问题,求大神帮忙


.total{
   clear:left;
   text-align:center;
   width:100%;
   height:100%;
   background:blue;
   background-size:100% 100%;
 }



慕的地8271018
浏览 604回答 1
1回答

蝴蝶刀刀

就是路径的问题, 我记得css中是不能用盘符路劲的   不能写成C:/ 这种形式  相对路径 绝对路劲都行
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript