我正在asp.net mvc应用程序上工作index.cshtml是我运行应用程序时的默认页面,该启动页面在应用CSS的情况下运行,但是当我从控制器“ / home / index”访问此页面时,css无法正常工作原因 ?
Try to use '/' as prefix in the css path. it consider from the root.
<link rel="stylesheet" href="/css/style.css" type="text/css" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.