2013-03-21 47 views
-2

我有一個代碼,在我的網站asp.net <%%>自動解析

<link href="<%=ResourceUrl %>PointMall/css/jjh_style.css" rel="stylesheet" type="text/css" 
media="screen" /> 

上的瀏覽器來改變

<link href="&lt;%=ResourceUrl %>PointMall/css/jjh_style.css?t=1" rel="stylesheet" type="text/css" media="screen" /> 

爲什麼?謝謝

回答

0

使用單引號而不是雙引號。例如:

<link href='<%= ResourceUrl + "PointMall/css/jjh_style.css" %>' rel="stylesheet" type="text/css" media="screen" /> 
0

使用單引號代替雙引號,如果你有在ResourceUrl

<link href='<%= ResourceUrl + "PointMall/css/jjh_style.css" %>' rel="stylesheet" 
      type="text/css" media="screen" /> 

其他明智

<link href='<%= ResourceUrl + "/PointMall/css/jjh_style.css" %>' rel="stylesheet" 
      type="text/css" media="screen" /> 
/