css布局实现扁平菜单导航效果代码
代码语言:html
所属分类:菜单导航
代码描述:css布局实现扁平菜单导航效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Cairo'> <style> .menu { position: relative; box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.5); background: black; text-transform: uppercase; text-align: center; letter-spacing: 0.25em; font-size: 1.5em; padding: 0; margin: 0; list-style-type: none; display: inline-block; } .menu .menu-item { position: relative; z-index: 1; } .menu a { display: block; color: inherit; text-decoration: none; padding: 0.75em 4em 0.75em 4em; } .menu li:nth-child(1) { background: #22267b; } .menu li:nth-child(2) { background: #1d2069; } .menu li:nth-child(3) { background: #181b56; } .menu li:nth-child(4) { background: #131544; } .menu li:nth-child(5) { background: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0