我刚刚使用 Bootstrap 3.4.0(万岁!)从头开始构建了我的第一个自定义 Wordpress 主题,但是,我的 jumbotron 部分在我的手机屏幕上没有响应......我想知道我是否错误地排队了一些东西?
这是我的样式表和脚本:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin="anonymous"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
这是我的 js.main 文档:
function custom_setup(){
wp_enqueue_style ('google-fonts', 'https://fonts.googleapis.com/css?family=Oswald');
wp_enqueue_style ('google-fonts', 'https://fonts.googleapis.com/css?family=Roboto');
wp_enqueue_style ('fontawesome', '//use.fontawesome.com/releases/v5.8.2/css/all.css');
wp_enqueue_style ('boot', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
wp_enqueue_style('style', get_stylesheet_uri(), NULL, microtime(), all);
wp_enqueue_script( 'boot1','https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js');
wp_enqueue_scrit ('boot2', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css');
wp_enqueue_script("main", get_theme_file_uri('/js/main.js'), NULL, microtime(), true);
}
add_action('wp_enqueue_scripts', 'custom_setup'); ```