html按钮样式
2017-12-19 00:00
295 查看
样式一:
<!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>
相关文章推荐
- HTML按钮样式
- 自定义上传按钮样式html
- 自定义上传按钮样式html
- 如何在html中直接给某个按钮置灰(样式、去除绑定事件), querySelector与jquery selector的不同之处
- HTML修改单选框多选框按钮样式
- 自定义上传按钮样式html
- 自定义上传按钮样式html
- HTML单选按钮样式更换
- 自定义上传按钮样式html
- 自定义上传按钮样式html
- 自定义上传按钮样式html
- HTML Button 背景图片样式作为按钮显示
- 自定义上传按钮样式html
- 怎样用纯HTML和CSS更改默认的上传文件按钮样式
- 自定义上传按钮样式html
- 自定义上传按钮样式html
- 怎样用纯HTML和CSS更改默认的上传文件按钮样式
- 自定义上传按钮样式html
- html中 按钮样式 怎么把按钮的边框阴影去掉
- 自定义上传按钮样式html