exynos a9,简笔风景画图片,许畯森
order 属性 设置或检索弹性盒模型对象的子元素出现的順序。。
注意:如果元素不是弹性盒对象的元素,则 order 属性不起作用。
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>flexbox demo</title> <style> .container1 { height: 500px; display: flex; border: 2px solid #ccc; justify-content: center; align-items: center; flex-wrap: wrap; } .item { width: 200px; height: 200px; } </style> </head> <body> <div class="container1"> <div class="item" style="background-color: red;order: 1"></div> <div class="item" style="background-color: yellow;order: 1"></div> <div class="item" style="background-color: blue;order: -1"></div> </div> </body> </html>
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
css3 flex布局 justify-content:space-between 最后一行左对齐
网友评论