HTML制作点击跳转百度按钮 - 简单易行
<!DOCTYPE html>
<html>
<head>
<title>Beautiful Button</title>
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 10px;
}
.button:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<button class='button' onclick='window.location.href='https://www.baidu.com''>Go to Baidu</button>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/nols 著作权归作者所有。请勿转载和采集!