菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
389
0

flex实现的导航

原创
05/13 14:22
阅读数 74436
<html>

    <head>
        <meta charset="utf-8" />
        <title></title>
        <style type="text/css">
		
			* {
                margin: 0;
                padding: 0;
            }
		
			#test{
			background-color:#C2EDFF;
			display:flex;
			flex-direction:row-reverse;
			justify-content:center;
			  user-select:none;
			
			}
	
		
            .box {
				height:80px;
				width:200px;
				border-radius: 25px;
				background-color:#F0F8FF;
				text-align:center;
				margin:10px;
				align-items:center;
				display:flex;
				justify-content:center;
				flex-wrap:wrap ;
				align-content:center;
            }
			
			.box p{
				font-size:20px;
			}
        </style>


<body>
<div id ="test">

<div class='box'><p>首 页</p></div>
<div class='box'><p>最 新</p></div>
<div class='box'><p>最 新</p></div>
<div class='box'><p>关 于</p></div>

</div>



</body>

</html>

  

发表评论

0/200
389 点赞
0 评论
收藏