css实现弧形头部导航菜单效果

代码语言:html

所属分类:菜单导航

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>

<style>
    @import url(https://fonts.googleapis.com/css?family=Playfair+Display:400italic,700italic,900italic);
html {
  background: #252525;
}

body {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

header {
  margin: 0 auto 0 auto;
  width: 100%;
  background: #161616;
  border-bottom-right-radius: 100% 60%;
  border-bottom-left-radius: 100% 60%;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}

nav {
  text-align: center;
  padding: 0 0 0.5em 0;
}

nav span {
  color: #d5bc4a;
  text-align: center;
  font-size: 3em;
  line-height: 2em;
  margin: 0 0.5em 0 0.5em;
  vertical-align: middle;
  font-weight: 900;
  text-transform: uppercase;
  background: -webkit-gradient(linear, left top, left bottom, co.........完整代码请登录后点击上方下载按钮下载查看

网友评论0