当我尝试在Chrome检查器中对其进行测试时,它似乎没有响应,因为它应根据代码进行响应(列会缩小)。但是,当我缩放Chrome的窗口或在Firefox / Edge /资源管理器的检查员。
有点琐碎的问题,但是由于我已经习惯了主要使用Chrome,所以这很令人沮丧,或者这是我不理解的严重问题?
<!DOCTYPE html>
<html lang="pl-PL">
<head>
<title>Bootstrap tutorial</title>
<meta charset="UTF-8">
<meta name="description" content="Ucze sie bootstrapa na tutku z yt">
<link rel="icon" href="boot.ico" type="image/x-icon">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<meta name="viewport" content" width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<h4>Column 1</h4>
Lorem ipsum dolor sit amet
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<h4>Column 2</h4>
Lorem ipsum dolor sit amet
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<h4>Column 3</h4>
Lorem ipsum dolor sit amet
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<h4>Column 4</h4>
Lorem ipsum dolor sit amet
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
</body>
</html>
答案 0 :(得分:1)
您忘记了元视口中的=
字符。
更改:
<meta name="viewport" content" width=device-width, initial-scale=1">
收件人:
<meta name="viewport" content="width=device-width, initial-scale=1">
答案 1 :(得分:0)
您没有在元标记中添加=作为内容,<meta name="viewport" content="width=device-width, initial-scale=1">
似乎其他浏览器似乎更宽容