*新闻详情页*/>
文中关键详细介绍了flex合理布局完成无缝拼接翻转的实例编码,共享给大伙儿,实际以下:
实例的演试
flex合理布局
说白了flex合理布局便是延展性盒合理布局,这类合理布局在手机端较为常见,但伴随着访问器的版本号升级,flex合理布局由于本身的优势,日趋常见。
构思:
动漫实际效果
css一部分编码
* { margin: 0; padding: 0; } a { text-decoration: none; } .box-big { position: absolute; display: flex; left: 50%; top: 50%; border: 1px solid #9FD6FF; transform: translate(-50%, -50%); width: 707px; height: 170px; /* background-color: pink; */ flex-wrap: wrap; overflow: hidden; } .box-top { width: 707px; height: 30px; border-bottom: 1px solid #9FD6FF; background-color: #FEFEFE; } .div-bottom { width: 707px; height: 136px; /* background-color: darkgoldenrod; */ overflow: hidden; } .st-icon-android { display: inline-block; width: 15px; height: 15px; background-image: url(../img/hd.gif); margin: 8px; } h5 { position: absolute; top: 6PX; left: 30px; color: #307DD1; } ul { position: absolute; left: 90px; width: 3000px; height: 100%; animation: run 20s linear infinite; } li { list-style: none; float: left; width: 140px; height: 100%; margin: 0 5px 0 5px; /* background-color: gold; */ flex-wrap: wrap; } .photo { margin-top: 5px; width: 140px; height: 105px; text-align: center; /* background-color: springgreen; */ } p { text-align: center; } img { cursor: pointer; } @keyframes run { 0% { left: 0; } 100% { left: -745px; } }
到此这篇有关flex合理布局完成无缝拼接翻转的实例编码的文章内容就详细介绍到这了,大量有关flex无缝拼接翻转內容请检索脚本制作之家之前的文章内容或再次访问下边的有关文章内容,期待大伙儿之后多多的适用脚本制作之家!
Copyright © 2002-2020 微信小程序商城_免费微信小程序_小程序设计软件_小程序生成平台_可查询的小程序 版权所有 (网站地图) 粤ICP备10235580号