HTML   发布时间:2022-04-14  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了html – 从按钮中删除阴影大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我想要的按钮是底部的按钮,但我拥有的按钮是顶部.

问题源于HTML中的顶部按钮:

<form class="button_to" method="get" action="/"><input type="submit" value="Ok" /></form>

和HTML中的底部按钮:

<button type="button">Ok</button>

顶部按钮的CSS是:

.signup-success input[type="submit"],.signup-success input[type="submit"]:active,.signup-success input[type="submit"]:focus {
  width: 80%;
  background: transparent;
  color: #00AA66;
  border-color: #00AA66;
}

底部按钮的CSS是:

.signup-success button,.signup-success button:active,.signup-success button:focus {
  margin-top: 15px;
  width: 80%;
  background: transparent;
  color: #00AA66;
  border-color: #00AA66;
}

如果它有助于从rails .erb扩展名生成顶部按钮

<%= button_to "Ok",root_path,:method => :get %>

帮助我让我的顶部按钮看起来像底部按钮.我试图放入禁用CSS中的阴影的代码,但它不起作用:(

解决方法

使用border-style:
.signup-success input[type="submit"],.signup-success input[type="submit"]:focus {
  width: 80%;
  background: transparent;
  color: #00AA66;
  border-color: #00AA66;
  border-style: solid;
}

或组合版本(边框样式,边框宽度和边框颜色合二为一):

border: 2px solid #00AA66;

大佬总结

以上是大佬教程为你收集整理的html – 从按钮中删除阴影全部内容,希望文章能够帮你解决html – 从按钮中删除阴影所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: