我用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)。 –