我正在尝试将导航按钮放置在徽标的右侧,但 Google Chrome 30 不接受我的代码,因为我的代码在 FF 25.0 和 IE 9 中运行良好。出于测试目的,我在这里上传了文件,请联系我们 请检查 Chrome 和 FF和IE然后你可以看到问题。这是我的 HTML 代码
<body>
<div class="container">
<!-- Top Navigation -->
<div class="codrops-top clearfix">
<span class="right"><a class="codrops-icon codrops-icon-drop" href="#"><span>Back to the Codrops Article</span></a></span>
</div>
<header>
<img src="images/demo4/othermanazeschoollogo.jpg" width="430" height="109" />
<nav class="codrops-demos">
<a href="index.html">Home</a>
<a href="http://software.manazeschool.com">Demo</a>
<a href="index4.html">Clients</a>
<a class="current-demo" href="#">Contact</a>
</nav>
</header>
<form method="post" action="mailsend.php" name="form1">
<table width="57%" border="1" style="text-align:left;">
样式表代码-
/* Header Style */
.main,
.container > header {
margin: 0 auto;
padding: 0.5em;
}
.container {
height: 100%;
}
.container > header {
background: rgba(0,0,0,0.03);
}
/* Demo Buttons Style */
.codrops-demos {
float:right;
padding-top: 1em;
font-size: 0.9em;
position:relative;
}
.codrops-demos a {
margin: 0.2em;
padding: 0.45em 1em;
background: #555;
color: #fff;
font-weight: 700;
border-radius: 2px;
}
.codrops-demos a:hover,
.codrops-demos a.current-demo,
.codrops-demos a.current-demo:hover {
opacity: 0.6;
}
.codrops-nav {
text-align: center;
}
.codrops-nav a {
display: inline-block;
margin: 20px auto;
padding: 0.3em;
}
提前感谢