【问题标题】:bootstrap not working in visual studio cordova apps how to use bootstrap files in Apache cordova apps?引导程序在 Visual Studio Cordova 应用程序中不起作用如何在 Apache Cordova 应用程序中使用引导程序文件?
【发布时间】:2017-02-22 15:11:20
【问题描述】:
  1. 如何在 Apache cordova 应用程序中使用引导文件?

  2. 有什么设置可以做

  3. 在 Visual Studio 2015 css intellisense 中不起作用

【问题讨论】:

    标签: visual-studio-cordova


    【解决方案1】:
    1. 如何在 Apache cordova 应用程序中使用引导文件?
    2. 有什么设置可以做

    首先,您需要下载bootstrap.css 或bootstrap.min.css 文件。然后你可以在你的index.html 文件中引用它:

    <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
        <!--reference bootstrap.min.css file here -->
        <link href="css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="css/index.css">
        <title>BootStrapDemo</title>
    </head>
    <body>
        <div class="app" style="">
            <button class="btn btn-danger">BootStrap Button</button>
        </div>
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="scripts/platformOverrides.js"></script>
        <script type="text/javascript" src="scripts/index.js"></script>
    </body>
    
    1. 在 Visual Studio 2015 中 css intellisense 无法正常工作

    我猜你没有正确引用它。如果你引用正确,你会得到这样的情报:

    【讨论】:

    • 我遵循了相同的程序,但仍然面临同样的问题 intellisense 无法正常工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-28
    • 1970-01-01
    相关资源
    最近更新 更多