The problem with the border of the phone end of the solution

Source: Internet
Author: User

Sometimes, with a as a link to the label, but occasionally in the mobile phone appears blue frame, very ugly, consider using another label instead of a to deal with this problem, in addition to the so-called Outline:none is useless

Scheme:

1: Add JS control in a tag, when the A tag is focused, force cancel focus, this time a tag naturally will not have a dashed box.

<a href= "#" onfocus= "This.blur ();" > Testing </a>
The blur () is triggered when the focus is set, and the focus is forced to cancel. Nature is a proven one.

2: In a tag nested other tags, such as span or VAR, etc., put the content in the nested tag. At this point, click on the link, the focus is a sub-tag, nature will not focus on a tag, so can also avoid this problem.

3: Do not apply a tag to do the link, using other tags, using JS to make hover effect, add Cursour:pointer in the CSS, set the mouse over the time-varying small hands. To the user is the illusion of the link. Use JS to do a click on the page jump and so on. The biggest drawback is that se-friendliness is much more tanesashi than the first two.

The common denominator of these three methods is more troublesome, compared to the first , the second third also depends on different circumstances. It will be used, too.

The problem with the border of the phone end of the solution

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.