【问题标题】:Modal form doesn't work模态形式不起作用
【发布时间】:2016-04-13 21:21:31
【问题描述】:

我在http://www.bootply.com/60244 找到了不错的模态表单,但是当我尝试在我的代码中运行它时,我在单击“启动模态”后得到空内容。可能我没有一些样式表或库。

<head>
<title></title>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link href="http://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic&subset=latin,latin-ext" type="text/css" rel="stylesheet"/>
<link href="css/style.css" rel="stylesheet">


<script src="js/jquery.js"></script>
<script src="js/jquery-2.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>

有人知道我需要什么来运行它吗?在 bootply 上一切都很好。

【问题讨论】:

    标签: javascript jquery forms twitter-bootstrap header


    【解决方案1】:

    Bootstrap 使用了require the use of the HTML5 doctype 的某些 HTML 元素和 CSS 属性。将它包含在所有项目的开头。

    <!DOCTYPE html>
    <html lang="en">
    ...
    </html>
    

    【讨论】:

      【解决方案2】:

      我找到了原因 - Bootstrap v2.3.1,我使用的是 3.3+。

      【讨论】:

        猜你喜欢
        • 2021-11-25
        • 1970-01-01
        • 2018-06-27
        • 2012-12-10
        • 2017-10-13
        • 1970-01-01
        • 1970-01-01
        • 2021-11-18
        • 2013-05-28
        相关资源
        最近更新 更多