日期:2014-05-18  浏览次数:20518 次

关于 路径的问题
我原来是这样的

<head runat="server">
  <title>无标题页</title>  
  <style type="text/css">
  /* 星星 */
  .cssRatingStar
  {
white-space: nowrap;
margin: 5pt;
height: 14px;
float: left;
  background-image: url(Image/Top/RatingBar.png);
  }
  </style>
</head>
<body>
.........................

后来把这段定义改倒样式文件中去了,然后这样写,结果确不行了

<head runat="server">
  <title>无标题页</title>  
  <link href = "css/Select.css" rel="Stylesheet" type = "text/css" />
</head>
<body>
............................
该怎么该呢?谢谢,是不是和那个图片路径有关呢?

------解决方案--------------------
你可以将background-image: url(Image/Top/RatingBar.png); 

改成相对路径background-image: url(../Image/Top/RatingBar.png); 

或绝对路径background-image: url(/Image/Top/RatingBar.png);