web前端学习-五环网页定位居中
一、效果
让五环居中网页,不管网页怎么变换,五环都在网页的中间,没有变化
web前端学习-五环网页定位居中
二、自己3月17号写的代码
下面展示 wuhuan.htnl
代码。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>五环定位网页</title>
<link rel="stylesheet" type="text/css" href="wuhuan.css">
</head>
<body>
<div class="wuhuan">
<div class="huan1"></div>
<div class="huan2"></div>
<div class="huan3"></div>
<div class="huan4"></div>
<div class="huan5"></div>
</div>
</body>
</html>
下面展示 wuhuan.css
代码。
.wuhuan