为什么col- *在我的wordpress网站上不起作用?

时间:2020-04-06 13:37:16

标签: javascript jquery css wordpress twitter-bootstrap

我正在使用wordpress和bootstrap 3.4.1

当我

<div class="container">
    <div class="row">
        <div class="col-3">First</div>
        <div class="col-3">Second</div>
    </div>
</div>

输出是


first 
second

代替

first    second 

当我执行col-md-3时,它确实起作用。我不知道发生了什么事?

我的functions.php看起来像这样

<?php 
   function enqueue_cafe_kraken_theme(){

       //style
       wp_enqueue_style( 
           "style",
           get_template_directory_uri(  ) ."/style.css",
           array(),
           rand(1,999),
           "all"
       );

       //bootstrap css
       wp_enqueue_style( 
           "bootstrap",
           get_template_directory_uri(  ) . "/bootstrap/css/bootstrap.min.css",
           array(),
           "4.3.1",
           "all"
       );

       //Jquery 
       wp_enqueue_script( 
           "jquery",
           get_template_directory_uri(  ) . "/js/jquery.js",
           array("jquery"),
           "3.4.1",
           true 
       );

       //bootstrap js
       wp_enqueue_script( 
           "bootstrap",
           get_template_directory_uri(  ) . "/bootstrap/js/bootstrap.min.js",
           array(),
           "4.3.1",
           true 
       );

   }

   add_action("wp_enqueue_scripts", "enqueue_cafe_kraken_theme");


如果任何人都可以提供任何很棒的见解

0 个答案:

没有答案