几款好看的HTML按钮样式

article/2025/11/8 21:25:54

给大家介绍几款好看的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>

 

友情链接:

Swift从入门到精通

Swift - iOS大转盘抽奖实现原理

Swift 4.2 新特性(译)

排序算法(01)— 三种简单排序(冒泡、插入、选择)

排序算法(02)— 快速排序算法

排序算法(03)— 希尔排序

 iOS开发技巧--Git的使用

iOS开发进阶


http://chatgpt.dhexx.cn/article/9QgatMFO.shtml

相关文章

Bootstrap之按钮的样式

在bootstrap中, 按钮(button)有不同的六种方式. 默认的button的样式是: btn. 这个是必要的样式. 还有其他的六种不同方式展现.分别为: 默认, 主要, 成功, 信息, 警告, 危险, 链接.今天我们就来仔细探讨下按钮的风格样式。 使用class可以快速创建一个带有样式的按钮。 原文链接…

button按钮样式

在许多网站中都需要实用到按钮&#xff0c;一个好看实用的css按钮即可以给访问者以美感&#xff0c;又可以方便开发者。下面就是一个纯css按钮&#xff0c;需要的可以参考。 css代码 .div {display: inline-block;padding: .3em .5em;background-image: linear-gradient(#ddd, …

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

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

各种按钮样式

用css写了几个按钮样式&#xff1a;静态的&#xff0c;不可编辑的&#xff0c;立体的&#xff0c;圆角的&#xff0c;胶囊状的&#xff0c;动态效果的样式。 效果预览&#xff08;录屏保存后有点抖动&#xff0c;稍微有点影响最后两个效果&#xff09;&#xff1a; 要写按钮样…

html界面——button设置样式

功能&#xff1a;1.点击“设备启动”按键可以启动设备&#xff0c;点击“测量”开始测量。 2.启动状态、测量进度、测量数字结果和图片每一秒刷新一次。 3.点击按键会有“纹波样式”动画效果 效果如图&#xff1a; 直接上代码 <!DOCTYPE html> <html lang"en&q…

HTML按钮的写法、样式

新建一个Html文件在<head>里写入一个内部样式 <style>第一方法在body写入<button>标签&#xff0c;该标签在HTML5中定义的是一个按钮的 在<button>标签内写入文字或设置样式,不设置可能会到导致<button>在页面中显示不出来 样式主要以尺寸、字体…

css按钮样式

创建漂亮的 CSS 按钮的 10 个代码片段 IT程序狮子烨 1 个月前 如果你正在寻找一些高质量的 CSS 按钮的示例&#xff0c;那么这篇文章一定是你的“菜”。在本文中&#xff0c;我们从 CodePen 上收集了 10 个独特的 CSS 按钮合集&#xff0c;并附有它们的代码片段&#xff0c;方便…

CSS3设置按钮的样式

平面按钮样式——现主流 在实际开发中&#xff0c;按钮的应用是必不可少 使用 CSS 来制作按钮&#xff0c;可以更有新意&#xff0c;更有趣&#xff0c;也可以自定义自己想要的样式 平面样式按钮的使用现在非常流行&#xff0c;并且符合无处不在的平面设计趋势 实现方式 .b…

【前端系列】36种button样式

&#x1f49d;&#x1f49d;&#x1f49d;欢迎来到我的博客&#xff0c;很高兴能够在这里和您见面&#xff01;希望您在这里可以感受到一份轻松愉快的氛围&#xff0c;不仅可以获得有趣的内容和知识&#xff0c;也可以畅所欲言、分享您的想法和见解。 推荐:kuan 的首页,持续学…

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

前言一 按钮在前端开发中往往是一个必不可少的元素,也有许多精美好看的样式资源供开发者直接使用。但博主认为,对于初学者而言,总是去cv别人做好的,而不理解其中的原理,是很不好的。 本人作为一名计科的学生,在大二也选修了校内的前端基础教程的课,但由于课时较短,老师…

几个实用又好看的纯css 按钮样式

分享几个实用又好看的纯css 按钮样式 1.带波纹效果的按钮 html部分: <button class"niceButton2">click</button>css部分&#xff1a; .niceButton2{position: relative;background-color: rgb(32, 93, 224);border: none;font-size: 28px;color: #f…

.apk文件的MIME类型

.apk文件的MIME类型 IIS7中下载apk文件会报404错误。 找到&#xff1a;IIS目录&#xff0c;MIME类型 添加.apk文件的MIME类型。 文件扩展名&#xff1a;.apk MIME类型&#xff1a;application/vnd.android.package-archive

android apk编译打包过程

Android安装包的后缀都是.apk&#xff0c; apk是Android Package的缩写。 解压apk文件后包含AndroidManifest.xml、assets目录、classes.dex(还可能有 classes2.dex,classes3.dex...classesN.dex)、lib目录、META-INF目录、res目录和resources.arsc。 AndroidManifest.xml对应源…

Android APK打包流程

目录 一、概述二、打包流程1、打包资源文件&#xff0c;生成R.java文件2、处理aidl文件&#xff0c;生成相应的Java文件3、编译项目源代码&#xff0c;生成class文件4、转换所有的class文件&#xff0c;生成classes.dex文件5、打包生成APK文件6、对APK文件进行签名7、对签名后的…

第四章 常见 Android 文件格式(一)(库文件、APK)

文章目录 库文件jar 包aar 包手动编写一个 aar 库APKAPK 文件结构APK 文件的生成流程APK 的安装流程通过系统程序安装(开机时安装)通过 Android 市场安装通过 adb 命令安装手机自带安装(通过 SD 卡里的 APK 文件安装)通过分析 packageinstaller.apk 的实现步骤了解 APK 的安…

android apk包解压缩,Android 解压APK文件

最近一个项目里需要得到Android已安装程序的签名文件(CERT.RSA)的SHA1值&#xff0c;所以就调研解压APK文件。 通过包名来得到已安装程序在系统的安装包路径。 private static String getApkPath(String pkgName) { PackageManager pm mContext.getPackageManager(); Applicat…

Android中APK打包流程

aapt: android application package tool,SDK (Android打包流程图) #Android打包流程 1.通过aapt工具将 资源文件(res)、清单文件(AndroidManifest.xml)生成对应的R.java文件 * 在项目的根目录下新建 gen目录&#xff0c;并且依次在gen目录下新建清单文件总包名对应的文件目录 …

android打包文件

直接把debug版本安装到真机会出现问题&#xff0c;和模拟器显示上的有点不一致。。亲身试验 接下来综合总结一下我看到其他博主们的经验 为什么要打包&#xff1a; apk文件就是一个包&#xff0c;打包就是要生成apk文件&#xff0c;有了apk别人才能安装使用。打包分debug版和re…

如何打开Android 打包文件 .apk 文件

在学习Android开发的过程中&#xff0c;常常想知道一些界面设计优良的应用是如何设计的。Android应用最后发布是以 .apk 文件提供的。那么如何在PC上打开这个 .apk文件呢&#xff1f; .apk 文件实际就是.zip 文件&#xff0c;可以使用WinZip ,WinRar 等来解压&#xff0c;一个简…

APK文件详解 + 打包流程

记录个人学习历程&#xff0c;毫无技术可言 前言 要学习Android必然需要了解apk的目录结构以及打包流程&#xff0c;还有各种文件详解 提示&#xff1a;以下是本篇文章正文内容&#xff0c;下面案例可供参考 一、APK文件详解 本质就是一个压缩包&#xff0c;可以直接进行解压…