.btn

编程入门 行业动态 更新时间:2024-10-25 08:27:12
.btn-link在bootstrap中不起作用(.btn-link not working in bootstrap)

我无法将按钮转换为在引导程序中显示为链接。 .btn-link似乎无法正常工作。 我不清楚我哪里出错了。 目的是将以下谷歌登录按钮转换为链接。 我使用了bootstrap.min.css文件,它以某种方式扰乱了整个网站。

PS我是bootstrap的新手

HTML

<button class="g-signin btn btn-link" data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email" data-requestvisibleactions="http://schemas.google.com/AddActivity" data-clientId="" data-accesstype="offline" data-callback="mycoddeSignIn" data-theme="dark" data-cookiepolicy="single_host_origin">Login with G+ </button>

CSS

.btn-link, .btn-link:active, .btn-link[disabled] { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { border-color: transparent; cursor: pointer; color: #0060a1; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #00a0e2; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus { color: #333333; text-decoration: none; }

I'm unable to convert a button to appear as link in bootstrap. .btn-link seem to be not working. I'm exactly not clear on where I'm going wrong. The intention is to covert the following google sign in button into link. I used the bootstrap.min.css file and it somehow disturbs the entire site.

P.S. I'm new to bootstrap

HTML

<button class="g-signin btn btn-link" data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email" data-requestvisibleactions="http://schemas.google.com/AddActivity" data-clientId="" data-accesstype="offline" data-callback="mycoddeSignIn" data-theme="dark" data-cookiepolicy="single_host_origin">Login with G+ </button>

CSS

.btn-link, .btn-link:active, .btn-link[disabled] { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { border-color: transparent; cursor: pointer; color: #0060a1; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #00a0e2; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus { color: #333333; text-decoration: none; }

最满意答案

.btn-link:hover, .btn-link:focus{ background: transparent!important;' }

看看小提琴的结尾

add

.btn-link:hover, .btn-link:focus{ background: transparent!important;' }

look at the end of the fiddle

更多推荐

btn-link,bootstrap,I'm,com,电脑培训,计算机培训,IT培训"/> <meta name=&qu

本文发布于:2023-08-07 06:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1462616.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:btn

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!