css布局实现手机端视频教学直播首页h5效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现手机端视频教学直播首页h5效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>直播</title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/swiper.min.css"> <style> * { margin: 0; padding: 0; border: 0; list-style: none; text-decoration: none; color: inherit; font-weight: normal; font-family: "微软雅黑"; box-sizing: border-box; font-style: normal; outline: none; -webkit-tap-highlight-color: transparent; outline: none; text-decoration: none; } body { width: 100%; overflow-x: hidden; background: #FFFFFF; } img { vertical-align: middle; max-width: 100%; } /*搜索*/ .search { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .1rem .2rem; } .search input { height: .6rem; line-height: .6rem; width: 100%; background: url(//repo.bfw.wiki/bfwrepo/image/60adfd751ea68.png) left .3rem center no-repeat #f4f4f4; padding-left: .7rem; background-size: .29rem .29rem; border-radius: .6rem; font-size: .26rem; } .search i { flex-shrink: 0; margin-left: .3rem; background: url(//repo.bfw.wiki/bfwrepo/image/60b03e727d45c.png) right center no-repeat; width: .42rem; height: .42rem; background-size: 100%; } /*轮播图*/ .slider { width: 100%; height: auto; padding: .2rem; position: relative; } .slider .swiper-slide { width: 6.4rem; height: auto; background: #fff; box-shadow: 0 .05rem .2rem rgba(0,0,0,.2); } .slider .swiper-slide img { display: block; width: 100%; } .slider .swiper-pagination { width: 100%; bottom: .3rem } .slider .swiper-pagination-bullets .swiper-pagination-bullet { margin: 0 5px; background-color: rgba(0,0,0,.5); width: .15rem; height: .15rem; } .slider .swiper-pagination-bullets .swiper-pagination-bullet-active { background-color: #fff } .slider .swiper-button-prev { left: .2rem; top: 0; width: .3rem; height: 100%; margin-top: 0; background: none; } .slider .swiper-button-prev:hover { background: none; } .slider .swiper-button-next { right: .2rem; top: 0; width: .3rem; height: 100%; margin-top: 0; background: none; } .slider .swiper-button-next:hover { background.........完整代码请登录后点击上方下载按钮下载查看
网友评论0