52ABP

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta name="viewport" content="width=device-width" />
    5. <title>@ViewBag.Title</title>
    6. <environment include="Development">
    7. <link href="~/lib/twitter-bootstrap/css/bootstrap.css" rel="stylesheet" />
    8. </environment>
    9. <environment exclude="Development">
    10. <link rel="stylesheet"
    11. href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
    12. asp-fallback-href="~/lib/twitter-bootstrap/css/bootstrap.css"
    13. asp-fallback-test-class="sr=only"
    14. asp-fallback-test-property="position"
    15. asp-fallback-test-value="absolute"
    16. asp-suppress-fallback-integrity="true"
    17. crossorigin="anonymous"
    18. integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" />
    19. </environment>
    20. <link href="~/css/site.css" rel="stylesheet" />
    21. </head>
    22. <body>
    23. <div class="container">
    24. <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
    25. <a class="navbar-brand" asp-controller="Home" asp-action="Index">
    26. <img src="~/images/student.png" width="30" height="30" />
    27. </a>
    28. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
    29. <span class="navbar-toggler-icon"></span>
    30. </button>
    31. <div class="collapse navbar-collapse" id="collapsibleNavbar">
    32. <ul class="navbar-nav">
    33. <li class="nav-item">
    34. <a class="nav-link" asp-controller="Home" asp-action="Index">列表</a>
    35. </li>
    36. <li class="nav-item">
    37. <a class="nav-link" asp-controller="Home" asp-action="Create">创建</a>
    38. </li>
    39. </ul>
    40. </div>
    41. </nav>
    42. @RenderBody()
    43. </div>
    44. <environment include="Development">
    45. <script src="~/lib/jquery/jquery.js"></script>
    46. <script src="~/lib/twitter-bootstrap/js/bootstrap.js"></script>
    47. </environment>
    48. <environment exclude="Development">
    49. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
    50. asp-fallback-src="~/lib/jquery/jquery.js"
    51. asp-fallback-test="window.jQuery"
    52. crossorigin="anonymous"
    53. integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo">
    54. </script>
    55. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
    56. asp-fallback-src="~/lib/twitter-bootstrap/js/bootstrap.js"
    57. asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
    58. crossorigin="anonymous"
    59. integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM">
    60. </script>
    61. </environment>
    62. @RenderSection("Scripts", required: false)
    63. </body>
    64. </html>