Answer the question
In order to leave comments, you need to log in
When the browser window is reduced, the Bootstrap header crumbles, what should I do?
Hello comrades, there is a problem. When the browser window is reduced, the site header crumbles.
Below is the
HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div id="header"><div id="header1" class="col-xs-4 col-sm-4 col-md-4"></div><div id="header2" class="col-xs-4 col-sm-4 col-md-4"></div><div id="header3" class="col-xs-4 col-sm-4 col-md-4"></div></div>
</div>
</div>
</body>
</html>
#header1 {
background-color: red;
height: 99px;
width: 300px;
float: left;
}
#header2 {
background-color: yellow;
height: 99px;
width: 300px;
float: left;
}
#header3 {
background-color: orange;
height: 99px;
width: 300px;
float: left;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question