原文地址为: 几款好看的HTML按钮样式

给大家介绍几款好看的HTML按钮样式

按钮样式一:


<!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 runat="server"><title></title><style>#login_click{ margin-top:32px; height:40px;}
#login_click a
{text-decoration:none;background:#2f435e;color:#f2f2f2;padding: 10px 30px 10px 30px;font-size:16px;font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;font-weight:bold;border-radius:3px;-webkit-transition:all linear 0.30s;-moz-transition:all linear 0.30s;transition:all linear 0.30s;}#login_click a:hover { background:#385f9e; }</style>
</head>
<body><form id="form1" runat="server"><div><div style=" width:386px; height:332px; margin-left:auto; margin-right:auto"><div id="login_form" ><div id="form_account">账户:<input id="txt_account" runat="server" type="text" placeholder="用户名或邮件地址" /></div><div id="form_password" >密码:<input id="txt_password" runat="server" type="password" placeholder="请输入密码" /></div><div id="login_click"><a id="btlogin" href="#">登 录</a></div></div></div>  </div></form>
</body></html>

按钮样式二:

<!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=iso-8859-1" />
<title>Image Rollover with CSS</title>
<style type="text/css" media="screen">
a.button { background:url(rss-feed-img.png) repeat 0px 0px; width: 123px; height: 44px; display: block; }
a.button span { display: none; }
a.button:hover { background: url(rss-feed-img.png) repeat 0px -44px; }
</style>
</head>
<body>
<a href="#" class="button"><span>RSS Feeds</span>
</a>
</body>
</html>

按钮样式三:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="" />
<script type="text/javascript" src="btn.js"></script>
<style type="text/css" media="screen">
body { padding: 20px; font-size: 0.85em; font-family: georgia, serif; }
.btn { display: block; position: relative; background: #aaa; padding: 5px; float: left; color: #fff; text-decoration: none; cursor: pointer; }
.btn * { font-style: normal; background-image: url(btn2.png); background-repeat: no-repeat; display: block; position: relative; }
.btn i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
.btn span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
.btn span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
.btn span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }
* html .btn span,
* html .btn i { float: left; width: auto; background-image: none; cursor: pointer; }
.btn.blue { background: #2ae; }
.btn.green { background: #9d4; }
.btn.pink { background: #e1a; }
.btn:hover { background-color: #a00; }
.btn:active { background-color: #444; }
.btn[class] {  background-image: url(shade.png); background-position: bottom; }
* html .btn { border: 3px double #aaa; }
* html .btn.blue { border-color: #2ae; }
* html .btn.green { border-color: #9d4; }
* html .btn.pink { border-color: #e1a; }
* html .btn:hover { border-color: #a00; }
p { clear: both; padding-bottom: 2em; }
form { margin-top: 2em; }
form p .btn { margin-right: 1em; }
textarea { margin: 1em 0;}</style>
</head>
<body><p><a href="#" class="btn blue">This is a blue button</a></p><p><a href="#" class="btn green">This should be a green button</a></p><p><big><a href="#" class="btn blue big">Big Text</a></big></p><form method="post" action="#"><fieldset><legend>Form Example</legend><div><input type="text" /></div><div><textarea cols="40" rows="10"></textarea></div><p><input type="Button" id="reset_btn" value="Reset" class="btn" /> <input type="Submit" id="submit_btn" value="Submit this form" class="btn pink" /></p></fieldset></form>
</body>
</html>

转载请注明本文地址: 几款好看的HTML按钮样式

几款好看的HTML按钮样式相关推荐

  1. 5去掉button按钮的点击样式_各种好看的小按钮合集,纯css编写,最近在学习时遇到的,记录成为笔记...

    写在前面 最近忙着实习的事,前往广州,租房,置办东西等等.用碎片化的时间看了一些博客,也看到不少我认为很不错的通过纯css来打造的按钮样式.记录下来以后开发的时候或许能用上. 亮起来按钮 <di ...

  2. button按钮样式_各种好看的小按钮合集,纯css编写,最近在学习时遇到的,记录成为笔记...

    写在前面 最近忙着实习的事,前往广州,租房,置办东西等等.用碎片化的时间看了一些博客,也看到不少我认为很不错的通过纯css来打造的按钮样式.记录下来以后开发的时候或许能用上. 亮起来按钮 < 简 ...

  3. html 按键样式大全,几款不错的按钮样式汇总

    几款不错的按钮样式汇总 * html .btn i { float: left; width: auto; background-image: none; cursor: pointer; } .bt ...

  4. 四款好看实用的CSS表格样式分享

    文章参考: https://www.w3cschool.cn/css/css-sfrk2opy.html https://www.php.cn/css-tutorial-375461.html htt ...

  5. html向左箭头样式,详解Bootstrap的纯CSS3箭头按钮样式

    简要教程 这是一款基于Bootstrap的纯CSS3箭头按钮样式.该按钮通过修改原生Bootstrap的按钮样式,来生成指向左侧或右侧的箭头按钮. [相关视频推荐:Bootstrap教程] 安装 可以 ...

  6. 一定能用到的简单但实用的五种按钮样式(原生HTML+CSS步骤详解,含详细注释)

    前言一   按钮在前端开发中往往是一个必不可少的元素,也有许多精美好看的样式资源供开发者直接使用.但博主认为,对于初学者而言,总是去cv别人做好的,而不理解其中的原理,是很不好的.   本人作为一名计 ...

  7. Bootstrap 警告框组件 + 退出按钮样式 实现一个可退出的警告框

    Bootstrap 实现可退出的警告框 通过bootstrap的警告框组件和退出按钮的样式就可以实现一个简单的可退出警告框: 先来看看退出按钮样式的实现: <button type=" ...

  8. Android自定义按钮样式

    安卓系统自带的按钮样式很不好看,满足不了感官需求,如何自定义一个自己需要的按钮样式呢? 分三步来介绍: 1.自定义按钮背景样式,在res/drawable/目录下新建bg_btn.xml文件. < ...

  9. 一款好看,有科技感的动态背景线条动态效果代码

    一款好看,有科技感的动态背景线条动态效果代码  Lan   2020-05-11 14:41   308 人阅读  0 条评论 背景动态js代码,效果图可见本站 代码源于网络,如有问题请联系Vast@ ...

  10. 小程序好看的渐变色按钮

    小程序好看的渐变色按钮 1.看效果 2.上代码 background:linear-gradient(to right,rgb(230,27,202),rgb(250,248,109)); 注:在cs ...

最新文章

  1. linux怎么注册信息,linux device注册
  2. 欧拉路径 之 poj 2513 Colored Sticks
  3. Python scrapy 命令行传参 以及发送post请求payload参数
  4. 高级C语言教程-sscanf()函数使用方式
  5. iOS-Runtime知识点整理
  6. 吉吉王国(二分+树形dp)
  7. Hadoop入门(十)Mapreduce高级shuffle之Sort和Group
  8. [BTS] WCF-SAP Connect to SAP gateway failed
  9. Leedcode9-linked-list-cycle-i
  10. 容器技术的发展与基本原理
  11. 关于多数据源(除自己数据库外,另一部分数据需通过接口调取第三方获取)的查询问题...
  12. centos7下永久修改hostname
  13. 对冲基金很需要:K、Q在哪里?
  14. Mac下开发ASP.NET Core应用,我用FineUICore!
  15. 2022年10 款最佳计算机视觉开源数据标注工具
  16. 零基础小白如何系统的自学网络安全(包含学习路线、工作方向)
  17. SPR:SUPERVISED PERSONALIZED RANKING BASED ON PRIOR KNOWLEDGE FOR RECOMMENDATION
  18. cdr软件百度百科_coreldraw是干嘛的?能做什么?cdr软件在哪儿下载?
  19. 2022贵州省农村信用社员工招聘模拟题及答案
  20. stack around xxx is corrupted

热门文章

  1. Android,iOS应用适配IPv6之网络配置
  2. java相关面试题汇总
  3. 2021年江苏省高考成绩排名查询,2021年江苏高考个人成绩排名查询方法及排名查询系统...
  4. ie不支持includes_IE11 – 对象不支持属性或方法“includes” – javascript window.location.hash...
  5. 现金流量表编制(经典总结)
  6. 微信注册AppID失败
  7. PHP序列化与反序列化
  8. spark another attempt succeeded
  9. uva10066-双塔
  10. 解决谷歌浏览器被篡改主页问题