三个按钮跳转网页 - 深绿色背景
<!DOCTYPE html>
<html>
<head>
<title>三个按钮跳转网页</title>
<style type="text/css">
body {
background-color: darkgreen;
}
<pre><code> button {
background-color: white;
color: black;
font-size: 20px;
padding: 10px 20px;
border-radius: 5px;
margin: 20px;
cursor: pointer;
}
</style>
</code></pre>
</head>
<body>
<pre><code><button onclick="window.location.href='https://www.google.com'">Button 1</button>
<button onclick="window.location.href='https://www.facebook.com'">Button 2</button>
<button onclick="window.location.href='https://www.twitter.com'">Button 3</button>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/ovoV 著作权归作者所有。请勿转载和采集!