Grid System Source code
節 1,講座 6
<!DOCTYPE html>
<html lang="en">
<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>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
div {
border: 1px solid red;
}
</style>
</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>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
div {
border: 1px solid red;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-1 col-md-4 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-1 col-md-1 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-1 col-md-1 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-9 col-md-6 col-xs-3">
One of 4 columns
</div>
</div>
</div>
<div class="row">
<div class="col-sm-1 col-md-4 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-1 col-md-1 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-1 col-md-1 col-xs-3">
One of 4 columns
</div>
<div class="col-sm-9 col-md-6 col-xs-3">
One of 4 columns
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
沒有留言:
張貼留言