css实现全屏弹出网格自适应菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现全屏弹出网格自适应菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> @charset "UTF-8"; @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,700|Shrikhand"); * { box-sizing: border-box; } body { font-family: "Open Sans", sans-serif; font-size: 1rem; line-height: 1.4; background-image: url(//repo.bfw.wiki/bfwrepo/image/60987bfc5afa0.png); background-size: cover; } @media (min-width: 450px) { body { font-size: 1.25rem; } } .page-header { display: flex; flex-wrap: wrap; justify-content: space-between; position: fixed; top: 0; right: 0; left: 0; overflow: visible; padding: 1rem; z-index: 200; } .page-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; min-height: 100vh; text-align: center; color: white; } .page-tagline { font-size: 0.75rem; font-weight: 700; z-index: 100; } .page-tagline a { color: #123965; text-decoration: none; } .page-title { margin-bottom: 1.5rem; font-family: "Shrikhand", serif; font-size: 2rem; line-height: 1.2; } @media (min-width: 450px) { .page-title { font-size: 3rem; } } nav { display: flex; position: absolute; top: 0; left: 0; padding: 3rem 1rem 1rem; width: 100vw; min-height: 100vh; text-align: center; background-color: white; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0