简体   繁体   English

更改链接按钮的颜色

[英]Change color of link buttons

I am trying to change the color of my button text to white, the buttons which show who is logged in and the logout button. 我试图将我的按钮文本的颜色更改为白色,显示谁登录的按钮和注销按钮。 Right now its blue and not easy to see whats it shows. 现在它的蓝色,不容易看到它显示什么。

I think it's because the buttons are links, that why its blue. 我认为这是因为按钮是链接,这就是为什么它的蓝色。

在此输入图像描述

Code: 码:

  <p class="navbar-text pull-right">
 <span class="glyphicon glyphicon-user"></span>  
<span class="label label-info" style="color:white">  Innlogget:  <a class="navbar-link" style="color:white">{{ HTML::linkRoute('user_data', Auth::user()->user_name) }} </a> </span> |
<span class="label label-danger" style="color:white">{{ HTML::linkRoute('logout', 'Logg ut') }} </span></p> 
 <ul class="nav navbar-nav pull-left">

CSS CSS

.label, 
.label a{font-size:18px; /*change font size as per requirement*/ color:#fff} 

.label-info:after { content: "|"; margin-left:8px; }

should work 应该管用

CSS Not proven CSS未经证实

<html>
<head>
<style>
a:link, a:visited {
color:white;
}
</style>
</head>
<body>
........
</body>

You say link then this is if its just only a link. 你说链接然后这是它只是一个链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM