主页
M
html5
JavaScript
DIV+CSS
前端美工
--网页制作--
Java与JSP
PHP
Python 3
Golang
R语言
--网络编程--
Mysql
Oracle
NoSQL
SQLite
--数据库--
Linux
正则表达式
架构
--运维--
--网页特效--
--移动开发--
SDN
QUIC
网络原理
--网络--
强化学习
机器学习
--人工智能--
区块链1
区块2
--区块链--
爬虫技术
爬虫案例
--数据采集--
理论
dapp案例
--dapp--
css实现a标签按钮化
2021-08-06
网页编程网
网页编程网
若使用input的中的submit,当GET提交时,所有input值均会出现在URL中,极不美观。而又需要按钮式的显示风格,所以要将a标签按钮化。
<html> <head> <meta charset="utf-8"> <style> .aButton{ display:inline-block; height:30px; line-height:30px; text-align:center; text-decoration:none; width:auto; padding:0 10px; border:1px solid #BBB; border-radius:5px; outline:none;/*取消外边框*/ background:#87CEFF; color:white; } .aButton:hover{ background:#79A84B; outline:0; } </style> </head> <body> <a class="aButton" href="javaScript:f()">返回上一层</a> </body> </html>
阅读原文
阅读
5909
123
显示电脑版
点击这里查看