在asp文件中包含css文件

时间:2017-05-03 07:08:40

标签: css asp.net include

fail to display:

it should be like this

我想问一下我的代码是否在asp代码中包含css文件得到错误,因为错误显示无法获取css文件。 那么,包含css文件的正确代码是什么?

<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="res/img/si.jpg">

<!-- Bootstrap core CSS -->
<link rel="stylesheet"  media="screen" href="~/library/bootstrap-3.3.6-dist/css/bootstrap-theme.min.css" />
<link href="library/bootstrap-3.3.6-dist/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/><!-- navi-->
<link href="library/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet"  type="text/css"/> <!-- navi-->
<link rel="stylesheet" href="library/startbootstrap-sb-admin-gh-pages/font-awesome/css/font-awesome.min.css"  type="text/css"/> <!-- navi-->

<!-- Bootstrap select css -->
<link href="library/bootstrap-select-1.10.0/dist/css/bootstrap-select.min.css" rel="stylesheet"><!-- navi-->

<!-- Custom CSS -->
<link href="res/css/main.css" rel="stylesheet"><!-- navi-->

<!-- C3.js CSS/JS  -->
<link href="library/c3-0.4.11/c3.min.css" rel="stylesheet"><!-- navi-->
<script src="library/d3/d3.min.js"></script><!-- navi-->
<script src="library/c3-0.4.11/c3.min.js"></script><!-- navi-->

<style>
    li {
border-left: 3px solid #ffffff;
        }   


<!-- Bootstrap core JavaScript -->
<script src="res/js/jquery.min.js"></script>
<script src="library/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>

<!-- Bootstrap select Javascript -->
<script src="library/bootstrap-select-1.10.0//dist/js/bootstrap-
select.min.js"></script>

0 个答案:

没有答案