css布局实现产品服务列表选项卡切换悬浮效果代码
代码语言:html
所属分类:选项卡
代码描述:css布局实现产品服务列表选项卡切换悬浮效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>大数据产品服务</title> <style> /* 公共样式表css */ html,body { color: #333; margin: 0; font-family: "Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: normal } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } a { text-decoration: none; color: #000; } img { border: 0; } body { background: #fff; color: #666; } html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td { margin: 0; padding: 0; } a { text-decoration: none; color: #08acee; } button { outline: 0; } img { border: 0; } button,input,optgroup,select,textarea { margin: 0; font: inherit; color: inherit; outline: none; } li { list-style: none; } a { color: #666; } a:hover { color: #eee; } .clearfix::after { clear: both; content: "."; display: block; height: 0; visibility: hidden; } .clearfix { } /* 必要布局样式css */ .large-content { height: 725px; background: url(//repo.bfw.wiki/bfwrepo/image/60e2538b3046c.png) no-repeat; background-size: cover; background-position: center 50%; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 1s; padding: 80px 0; } .large-group { width: 1180px; margin: 0 auto; position: relative; height: auto; } .large-header { font-weight: normal; text-align: center; margin-bottom: 40px; color: #fff; } .large-header em { display: block; margin-bottom: 14px; font-style: normal; font-size: 30px; } .large-switch-circle ul { font-size: 16px; color: #fff; text-align: center; } .large-switch-circle ul li { opacity: .8; cursor: pointer; margin: 0 20px; position: relative; display: inline-block; } .large-switch-circle ul li:hover { color: #fff; opacity: 1; } .large-switch-circle ul .on { opacity: 1; } .large-switch-circle ul .on:after { content: ''; width: 20px; height: 1px; display: inline-block; background: #fff; position: absolute; bottom: -10px; left: calc(50% - 10px); animation: bigdata-underline-grow both .3s; } .large-switch-middle { width: 1180px; margin-top: 40px; position: absolute; z-index: 1; } .large-switch-middle ul li { cursor: pointer; width: 234px; height: 210px; color: #fff; overflow: hidden; float: left; margin: .5px; background-image: -webkit-linear-gradient(bottom, rgba(47, 42, 65, 0.5) 0%, #2e3d50 100%); background-image: -moz-linear-gradient(bottom, rgba(4.........完整代码请登录后点击上方下载按钮下载查看
网友评论0