css 挑战Boostrap GRAND OEIL
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 挑战Boostrap GRAND OEIL相关的知识,希望对你有一定的参考价值。
challenge Boostrap GRAND OEIL
-----------------------------
A [Pen](https://codepen.io/muriel1995/pen/KJJjXa) by [muriel1995](https://codepen.io/muriel1995) on [CodePen](https://codepen.io).
[License](https://codepen.io/muriel1995/pen/KJJjXa/license).
<!DOCTYPE>
<html lang="fr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Grand Oeil</title>
</head>
<body>
<div class="container">
<!--rangée 1 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 black offset-9"></div>
</div>
<!--rangée 2 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 orange offset-3"></div>
<div class="col-1 yellow "></div>
<div class="col-1 orange "></div>
<div class="col-1 black offset-3"></div>
</div>
<!--rangée 3 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 orange offset-2"></div>
<div class="col-1 yellow "></div>
<div class="col-1 black "></div>
<div class="col-1 yellow "></div>
<div class="col-1 orange "></div>
<div class="col-1 black offset-2"></div>
</div>
<!--rangée 4 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 black"></div>
<div class="col-1 orange"></div>
<div class="col-1 orange"></div>
<div class="col-1 yellow "></div>
<div class="col-1 black "></div>
<div class="col-1 yellow "></div>
<div class="col-1 orange "></div>
<div class="col-1 orange"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 5 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 black "></div>
<div class="col-1 orange offset-1"></div>
<div class="col-1 yellow "></div>
<div class="col-1 black "></div>
<div class="col-1 yellow "></div>
<div class="col-1 orange "></div>
<div class="col-1 black offset-1 "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 6 -->
<div class="row no-gutters">
<div class="col-1 black"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 orange offset-1"></div>
<div class="col-1 yellow "></div>
<div class="col-1 orange "></div>
<div class="col-1 black offset-1 "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 7 -->
<div class="row no-gutters">
<div class="col-1 black offset-1"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black offset-3"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 8 -->
<div class="row no-gutters">
<div class="col-1 black offset-2"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 9 -->
<div class="row no-gutters">
<div class="col-1 black offset-3"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 10 -->
<div class="row no-gutters">
<div class="col-1 black offset-4"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></div>
</div>
<!--rangée 11 -->
<div class="row no-gutters">
<div class="col-1 black offset-4"></div>
<div class="col-1 black "></div>
<div class="col-1 black "></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.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
</body>
</html>
.col-1
{
padding-top:8%;
border:1px solid white;
}
.black
{
background:black;
}
.orange
{
background:#FF8C00;
}
.yellow
{
background:yellow;
}
以上是关于css 挑战Boostrap GRAND OEIL的主要内容,如果未能解决你的问题,请参考以下文章