简体   繁体   English

下拉菜单popper.js

[英]Dropdown menu popper.js

I'm trying to make a dropdown menu but I get this error: 我正在尝试制作下拉菜单,但出现此错误:

"Uncaught Error: Bootstrap dropdown require Popper.js (https://popper.js.org)
    at bootstrap.min.js:6
    at bootstrap.min.js:6
    at bootstrap.min.js:6"

I found some questions about it here but none of them worked for me. 我在这里发现了一些问题,但没有一个对我有用。 How do I import this popper.js? 如何导入此popper.js?

edit1: 编辑1:

I just found a way to import with script tag...it was all this time in bootstrap documentation. 我刚刚找到了一种使用脚本标签导入的方法...引导程序文档中一直都在这。 But, there's one more problem: The code is free of erros but my dropdown button isn't working. 但是,还有一个问题:代码没有错误,但是我的下拉按钮不起作用。 I tried every single dropdown in bootstrap documentation, I ctrl+c - ctrl-v all of them and none of them are working, I click on the button and nothing happens :( 我尝试了引导文档中的每个下拉列表,我都按ctrl + c-ctrl-v进行了操作,但都不起作用,我单击了按钮,没有任何反应:(

 !doctype html>
<html>
<head>
<meta charset="utf-8">
<title>About us</title>


<link href="bootstrap.min.css" rel="stylesheet" type="text/css">


<link href="Sobre-Nós.css" rel="stylesheet" type="text/css">





<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.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>







</head>

Check this documentation: https://github.com/FezVrasta/popper.js#installation 检查此文档: https : //github.com/FezVrasta/popper.js#installation

There are several ways of installing popper. 有几种安装popper的方法。

Good luck! 祝好运!

I solved my problem, it's just: 我解决了我的问题,这仅仅是:

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

<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.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM