html - HTML button not working on click but css works fine
问题描述
You read it right.. My html button is functional but sometimes it doesn't redirects to the link.
My button code is
<a href="gallery/"><button style="text-align:center;border:black 1px solid; background-color:black;width:1px;height:1px;border-radius:100px;"><h5 style="color:white;font-family:courier;">Oil Paintings</h5><img src="images/oilPainting.jpeg" width="300px" style="border-radius:1000px;"/></button></a><
I don't know whether this is a button problem or the problem is in the anchor tag somewhere.
To check the working, I added some css the enlarges the button on click. but when I click the button, it just enlarges and doesn't redirects. Please Help..
解决方案
推荐阅读
- docusignapi - DocuSign 在通过代码生成 oauth 令牌和访问令牌时要求提供凭据
- powershell - 如何在 FilePath 中使用变量(带 $)来启动 cURL?
- javascript - 如何从客户端 A 向服务器 B 发送消息?
- python - tensorflow Optimizer:尝试使用未初始化的值 fc.bias/Momentum
- javascript - 如何在javascript中使用此方法(function1(params).function2(params))创建一个跟随另一个函数的函数
- reactjs - 处理海量 GeoJSON 数据
- sql - 如何修复 PostgreSQL 间隔语法错误
- ios - iOS:如何检查临时配置文件中包含的签名证书?
- java - Eclipse 上的 Oracle WebLogic 插件无法连接到 WebLogic 域
- c# - 如何使用 TPL 管道从多个线程安全地访问集合