CSS removes the dotted border generated when clicking a link. Compatible with browsers that meet W3C standards

CSS removes the dotted border generated when clicking a link. Compatible with browsers that meet W3C standards

Part of the code:

Copy code
The code is as follows:

<ul class="about_nav">
<li class="nav1"><a href="about.html" class="fontnav ">123WORDPRESS.COM</a></li>
<li class="nav2"><a href="about_webintro.html" class="fontnav">123WORDPRESS.COM</a></li>
<li class="nav3"><a href="about_operation.html" class="fontnav">123WORDPRESS.COM</a></li>
<li class="nav4"><a href="about_system.html" class="fontnav">123WORDPRESS.COM</a></li>
<li class="nav5"><a href="about_contantus.html" class="fontnav">123WORDPRESS.COM</a></li>
</ul>

Solution:
1. Add outline:none in CSS;

Copy code
The code is as follows:

a.fontnav { text-align:left;color:#555; text-decoration:none; outline:none}

ps: outline:none is only recognized in Firefox, not supported in IE.
2. In IE: add "hidefocus="true" to the HTML
<li class="nav2"><a href="about_webintro.html" class="fontnav" hidefocus=true>123WORDPRESS.COM</a></li>

<<:  Put frameset in body through iframe

>>:  Explain the deployment and configuration of Clickhouse Docker cluster with examples

Recommend

Implementation of CSS child element selection parent element

Usually a CSS selector selects from top to bottom...

Pure CSS3 to create page switching effect example code

The one I wrote before is too complicated, let’s ...

Use JS to operate files (FileReader reads --node's fs)

Table of contents JS reads file FileReader docume...

Example of adding and deleting range partitions in MySQL 5.5

introduce RANGE partitioning is based on a given ...

Detailed installation process of MySQL 8.0 Windows zip package version

The installation process of MySQL 8.0 Windows zip...

Windows DNS server exposed "worm-level" vulnerability, has existed for 17 years

Vulnerability Introduction The SigRed vulnerabili...

How to use border-image to implement text bubble border sample code

During the development activity, I encountered a ...

Table of CSS Bugs Caused by hasLayout

IE has had problems for a long time. When everyone...

Building the User Experience

<br />Maybe you've just come into a comp...

Summary of experience in using div box model

Calculation of the box model <br />Margin + ...

Detailed explanation of javascript knowledge points

Table of contents 1. Basic Introduction to JavaSc...

Basic usage of find_in_set function in mysql

Preface This is a new function I came across rece...

JavaScript to achieve window display effect

This article shares the specific code of JavaScri...

How to Change Colors and Themes in Vim on Linux

Vim is a text editor that we use very often in Li...

Introduction to the use of select optgroup tag in html

Occasionally, I need to group select contents. In ...