html – 从按钮中删除阴影
发布时间:2020-12-30 19:05:04 所属栏目:资源 来源:网络整理
导读:我想要的按钮是底部的按钮,但我拥有的按钮是顶部. 问题源于HTML中的顶部按钮: form class="button_to" method="get" action="/"input type="submit" value="Ok" //form 和HTML中的底部按钮: button type="button"Ok/button 顶部按钮的CSS是: .signup-succ
我想要的按钮是底部的按钮,但我拥有的按钮是顶部. 问题源于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; (编辑:站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |