Firefox's-moz-focus-inner

Source: Internet
Author: User

In Firefox, ::-moz-focus-outer and ::-moz-focus-inner pseudo-elements are primarily for button-type elements, including button type, reset type, and submit type.

The button uses line height to center the text vertically, but the text in Firefox is lower and there is a dashed box in the middle of the click. Firefox's button system style is as follows:


{ Border: 1px dotted transparent; padding: 0 2px;} Button:-moz-focusring::-moz-focus-inner, input[type= "reset"]:-moz-focusring::-moz-focus-inner, input[type= " Button "]:-moz-focusring::-moz-focus-inner,
{ Border-color: buttontext;}

Solution:

Button::-moz-focus-inner, input[type= "reset"]::-moz-focus-inner, input[type= "button"]::-moz-focus-inner,
{ Border:/* go to the dotted box */; padding:0;}

In fact, the outline settings for the button need to be set up to achieve the same style effect as all browsers:

{    outline:none;    /* For IE */}  {    border-color: transparent;    /* For Mozilla */

Firefox's-moz-focus-inner

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.