问题描述
在GLOBAL.ASAX文件中添加路由列表后,路由正常routes.MapPageRoute("about","about/{navigationID}/{DD}/{SS}/","~/webPage/about.aspx");问题来了,在~/webPage/about.aspx中引入的css外部文件路径出现问题1.,如果routes.MapPageRoute("about","about/{navigationID}/","~/webPage/about.aspx");是一个参数,则页面载入正常2,如果routes.MapPageRoute("about","about/{navigationID}/{DD}/{SS}/","~/webPage/about.aspx");是多个参数,则页面加载后css引入路径错误,css引入变成如下<linktype="text/css"href="../../../css/Base.css"rel="Stylesheet"/><linktype="text/css"href="../../../css/about.css"rel="Stylesheet"/>不知如何解决,求助!
时间: 2024-10-08 03:00:25