css实现视觉差异放大立体导航菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现视觉差异放大立体导航菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; height: 100vh; display: flex; align-items: center; justify-content: center; background: cornsilk; } ul { padding: 0; list-style-type: none; } ul li { box-sizing: border-box; width: 15em; height: 3em; font-size: 20px; border-radius: 0.5em; margin: 0.5em; box-shadow: 0 0 1em rgba(0,0,0,0.2); color: white; font-family: sans-serif; text-transform: capitalize; line-height: 3em; transition: 0.3s; cursor: pointer; } ul li:nth-child(odd) { background: linear-gradient(to right, orange, tomato); text-align: left; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0