提交输入没有得到:当我点击按钮的文本在IE8的活动状态 [英] submit input doesn't get the :active state in IE8 when I click on the button’s text

查看:113
本文介绍了提交输入没有得到:当我点击按钮的文本在IE8的活动状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE8中,如果我完全点击提交按钮上的text-value,它不会从输入:active CSS选择器获得属性。

In IE8 if I click exactly on the text-value on a submit button, it doesn't get the properties from the input:active CSS selector.

但是如果我点击按钮上的其他地方,就会得到它们。

But if I click elsewhere on the button it gets them.

为什么?如何解决?

推荐答案

您可以通过应用 input:focus 到您的输入:active 选择器声明:

you can achieve this by applying input:focus to your input:active selector declaration:

input:active,input:focus{background-color:#000}



<活动和:focus 一起是伟大的ui / ux / etc ....很多东西。

applying :active and :focus together are great for ui/ux/etc.... a lot of things.

这篇关于提交输入没有得到:当我点击按钮的文本在IE8的活动状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆