前端学习(535):多列布局2
生活随笔
收集整理的這篇文章主要介紹了
前端学习(535):多列布局2
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>css多列布局</title><style>.parent{column-count: 4;column-width: 300px;}.col1,.col2,.col3,.col4{height: 300px;}.col1{background-color: thistle;}.col2{background-color: tomato;}.col3{background-color: turquoise;}.col4{background-color: red}</style>
</head>
<body>
<div class="parent"><div class="col1"></div><div class="col2"></div><div class="col3"></div><div class="col4"></div>
</div>
</body>
</html>
運(yùn)行結(jié)果
總結(jié)
以上是生活随笔為你收集整理的前端学习(535):多列布局2的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 前端学习(606):计算机基础
- 下一篇: 【转】IE内嵌google chrome