小编Vys*_*ala的帖子

当我点击屏幕上的其他位置时,按钮的下边框消失

小提琴

这是我的HTML代码:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<button>
    <i class="fa fa-5x fa-motorcycle gobumpr_icon"></i>
</button>
<button>
    <i class="fa fa-car fa-5x gobumpr_icon"></i>
</button>
Run Code Online (Sandbox Code Playgroud)

这是我的CSS:

button:focus {
    border-bottom: thick solid #FFA800;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: width 2s;
    -webkit-transition: width 2s;
    outline: none;
    box-shadow: none;
}
Run Code Online (Sandbox Code Playgroud)

我希望边框底部保持不变,直到单击另一个按钮.我怎样才能做到这一点?

html css font-awesome

6
推荐指数
1
解决办法
1380
查看次数

测试 .htaccess 文件的更好方法

I don't have much experience with htaccess rules, some of them are working but when I add a new rule or remove one, how do I test them?? I cannot test it on the actual server. Even in my localhost, I won't be able to test some like https rules, www and other stuff.

I can test the rest of url patterns but when I add the www and https rules along with the tested ones on the live server, …

regex apache .htaccess mod-rewrite

2
推荐指数
1
解决办法
9130
查看次数

标签 统计

.htaccess ×1

apache ×1

css ×1

font-awesome ×1

html ×1

mod-rewrite ×1

regex ×1