<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button1 {width: 250px;}
.button2 {width: 50%;}
.button3 {width: 100%;}
</style>
</head>
<body>
<h1>按钮宽度</h1>
<p>使用 width 属性来改变按钮的宽度:</p>
<p><b>提示:</b>请使用像素设置固定宽度,并为响应式按钮使用百分百(例如其父元素的 50%)。请调整窗口大小来查看效果。</p>
<button class="button button1">250px</button><br>
<button class="button button2">50%</button><br>
<button class="button button3">100%</button>
</body>
</html>