我用CSS设计了这个按钮,并且这个样式似乎没有应用到按钮上。链接到网站。 http://randomstufffrommybrain.neocities.org/TheRandomPage.html我用CSS设计的这个按钮不会样式
的HTML:
<head>
<link rel="stylesheet" href=CSSFORTherandompage.css>
</head>
<div id="Button5">
<button><a href=Newsitetestcode/Newwebsitemainpage.html>New website</a>
</button>
</div>
的CSS:
#Button5 {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
关闭''
https://jsfiddle.net/evxw9q73/ – brk
鉴于通过的jsfiddle @ user2181397表明,它实际上做的工作,你需要提供一个适当的问题。有关如何执行此操作的信息,请参阅[如何创建最小,完整和可验证示例](http://stackoverflow.com/help/mcve)。 –