纯css实现一个tab选项卡切换效果代码
代码语言:html
所属分类:选项卡
代码描述:纯css实现一个tab选项卡切换效果代码,没有使用js代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"); /* ################################################# This is part of the UI framework being developed. ################################################# */ body { padding: 0; margin: 0; height: 100%; font-family: "Roboto", sans-serif; } .title { text-align: center; padding: 40px 0; font-size: 40px; font-weight: 300; color: #636983; } .wrapper { background-color: #F6F8FF; width: 100%; min-height: 100vh; } .wrapper .line { width: 50%; margin: 50px auto 0 auto; height: 1px; background-color: #c3d2e3; } h2.tab-title { font-weight: 300; } h2.tab-title.tab-primary { color: #636983; } h2.tab-title.tab-success { color: #51a14c; } h2.tab-title.tab-default { color: #525252; } h2.tab-title.tab-warning { color: #b12222; } .container { width: 100%; padding: 10px 0; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0