深绿色背景带三个按钮的 HTML 页面 - Google, Facebook, Twitter
<!DOCTYPE html>
<html>
<head>
<title>深绿色背景带三个按钮的 HTML 页面</title>
<style>
body {
background-color: darkgreen;
}
.button {
background-color: white;
color: darkgreen;
padding: 10px 20px;
margin: 10px;
border: none;
border-radius: 5px;
font-size: 20px;
cursor: pointer;
}
.button:hover {
background-color: darkgreen;
color: white;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
</style>
</head>
<body>
<div class='container'>
<button class='button' onclick='window.location.href='http://www.google.com''>Google</button>
<button class='button' onclick='window.location.href='http://www.facebook.com''>Facebook</button>
<button class='button' onclick='window.location.href='http://www.twitter.com''>Twitter</button>
</div>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/ovpi 著作权归作者所有。请勿转载和采集!