刷新时按钮默认样式

时间:2016-04-25 14:01:23

标签: css

不确定为什么我会收到此错误,但是当我刷新Chrome页面时(它似乎在Firefox和IE上运行正常)我可以看到我的按钮的默认样式。现在,我做了一些搜索,大多数答案表明我的HTML有问题。我使用了W3验证器,它说一个标签不应该在按钮标签内。我删除了一个标签,只是为了查看它是否有效并清理了我的缓存和Cookie,但我仍然收到错误...这里是我gh-pages的链接

enter image description here



/* Buttons */

.button {
	color: black;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
}

#applyButton {
	width: 150px;
	height: 48px;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 2%;
	transition: all 0.5s ease;
	background: rgba(12, 12, 12, .3);
	margin-top: 25px;
}

#applyButton a {
	color: #fff;
	font-family: 'Open Sans', Arial, serif;
	font-weight: 600;
	font-size: 1em;
	text-decoration: none;
}

#applyButton:hover {
	background: #a0ce4e;
	border: 1px solid #a0ce4e;
	cursor: pointer;
}

#applyButton:active {
	border: none;
}

  	<section id="hero" class="panel">
  		<section class="inner-wrapper">
  			<h1>Find Your Dream Home</h1>
  			<h2>Don't break the bank. Let us help you get the home you love</h2>
  			<section class="heroPercentage">
  				<h3>2.99%</h3>
  				<p>First 6 months</p>
  			</section>
        <section>
          <button id='applyButton'>Apply Now</button>
        </section>       
  		</section>
  	</section>
&#13;
&#13;
&#13;

0 个答案:

没有答案