Button focus of IE Form Controls

Source: Internet
Author: User

There are two types of buttons: <input value = "button"/> or <button> button </button>. If the button is used for form submission, you must also add the type attribute (type = "submit "). In order to beautify the button effect, the background and border attributes are generally set.

However, if the type attribute of the button is set to submit when the form area gets the focus in IE, the button will automatically trigger the focus effect. As shown in:

<Button type = "submit"> finished </button>

To avoid this nasty black box, you need to set the border attribute of the button to none, and then set a layer of containers to simulate the border effect of the button.

Look at the comment box of this article and discard the button style that was too small. The user experience lies in the details ~

Source: mango

Related Article

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.