asp.net网站中如何高效的使用绝对路径
我想在自己的网站中使用绝对路径,包括引用CSS文件,js文件,图片文件,还有CSS文件中的图片文件,不知道该如何做?
如:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
</title>
<script type="text/javascript" src="http://www.csdn.net/Js/jquery-1.7.2.js"></script>
<link type="text/css" href="http://www.csdn.net/NhibernateWeb/css/index.css"/>
</head>
<body>
<form name="form1" method="post" action="DivTest.aspx" id="form1">
<div>
<img src="http://www.csdn.net/NhibernateWeb/Images/0002.jpg" width="200" height="200" />
</div>
</form>
</body>
</html>
css.index
body{
background:url(http://www.csdn.net/images/bg.gif);
}