<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style type="text/css">
.btn {
background-color: #147ec7;
color: #fff;
font-size: 12px;
line-height: 1em;
border: #99c7f1 3px double;
padding-top: 4px;
padding-right: 8px;
padding-bottom: 1px;
padding-left: 8px;
cursor: hand;/*手型*/
}
</style>
</head>
<body>
<button class="btn">确定</button>
不可用
<button class="btn" disabled="disabled">取消</button>
</body>
</html>
css 按钮样式
最新推荐文章于 2025-06-12 11:49:10 发布
本文介绍了一个简单的HTML页面示例,展示了如何使用内联CSS为按钮设置样式,并演示了如何使按钮处于不可用状态。通过这个例子,读者可以学习到基本的HTML和CSS语法,了解如何改变按钮的背景颜色、边框样式等属性。

517

被折叠的 条评论
为什么被折叠?



