Chrome无法提供引导代码的预期输出

问题描述 投票:0回答:1

我正在使用引导程序。我已将所有必要的引用添加到引导程序库,但它在Google chrome中仍然无法使用。这是我得到的输出的屏幕截图:

enter image description here

我在“ This is a Jumbotron”(这是一个Jumbotron)文本上使用了一个巨型飞镖,但它不起作用。我的HTML代码如下:

     <!DOCTYPE html>
        <html lang="en">
          <head>
            <!-- Required meta tags -->
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        
            <!-- Bootstrap CSS -->
            <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
        
            <title>Hello, world!</title>
          </head>
          <body>
            <h1>Hello, world!</h1>
        
            <!-- Optional JavaScript -->
            <!-- jQuery first, then Popper.js, then Bootstrap JS -->
            <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
            <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
        
            <div class="Jumbotron">
        This is a Jumbotron.
            </div>
          </body>
        </html>

您可以看到该代码中包含了引用,但是在chrome中仍然无法使用。请注意,我已从bootstrap.com入门模板复制了此代码。那么,我的浏览器有问题吗?如果您知道答案,请回答此问题。提前致谢。此代码没有CSS。而且我还使用Visual Studio Code作为代码编辑器。

twitter-bootstrap google-chrome
1个回答
0
投票

我找到了答案:这与代码编辑器无关,但是我在Chrome中安装了一个扩展程序,该扩展程序不允许我(通过脚本网站)访问脚本链接。一旦我删除了扩展名(或者您可以尝试禁用它),引导程序将再次开始工作。该答案适用于面临与我同样的问题的任何人。

© www.soinside.com 2019 - 2024. All rights reserved.