Home Web Front-end CSS Tutorial Remove the dotted frame of link elements and be compatible with IE7, IE6, and FF_Experience exchange

Remove the dotted frame of link elements and be compatible with IE7, IE6, and FF_Experience exchange

May 16, 2016 pm 12:05 PM
remove dashed box

Recommend the following code

Copy code The code is as follows:

a {outline: none; /* for Forefox * / }
a {star:expression(this.onFocus=this.blur()); /* for Ie*/ }

The following code is more troublesome
We use htc files to solve this problem. Save the following code as a link.htc file on the home page.​
Copy code The code is as follows:


<script>    <br>function hscfsy(){    <br>this.blur();    <br>}    <br></script>

Write the following code in the HTML file to create a link:
jb51.net
We start defining the CSS style for this link:

a {
 display:block;
width:100px;
height:30px;
Line-height:30px;
text-align:center;
}
a:hover {
Background:#ddd;
}
CSS styles determine the appearance of links, block elements with a certain width and height. Text is aligned horizontally, left and center.​
We add an attribute to the style of the a tag. Use this to remove the dashed border of a link:

a {
 display:block;
width:100px;
height:30px;
Line-height:30px;
text-align:center;
Behavior:url(line.htc);
}
We run the following code to see the effect:

[Ctrl A Select all Note:If you need to introduce external Js, you need to refresh it to execute]

We previewed it in IE7 and IE6, and there is no problem. But the dashed box still exists in FF.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1677
14
PHP Tutorial
1280
29
C# Tutorial
1257
24
How to get rid of arrow icons for shortcuts on Windows 11 How to get rid of arrow icons for shortcuts on Windows 11 Dec 28, 2023 am 10:39 AM

After many users use the latest win11 system, a small arrow appears on the shortcut icon on the desktop, which affects the appearance. Therefore, we have brought you a tutorial to remove the small arrow from the win11 shortcut icon. If you also think it does not look good, come and watch it. Let’s see how it works. How to remove the small shortcut arrow in win11: 1. First, press the "win+r" shortcut keys on the keyboard at the same time. 2. Then open "Run", enter the "regedit" command, and click the "OK" button. 3. Next, enter the "Registry Editor" page and click to open: HKEY_CLASSES_ROOT\lnkfile (can be copied and pasted). 4. After re-entering, right-click "lsShortcut" and select

How to remove watermark with Scanner How to remove watermark with Scanner Mar 05, 2024 pm 05:34 PM

Removing watermarks is a useful tool in the software Scanner. Some users are not sure how to remove watermarks in Scanner. You can click Remove Watermark in Edit PDF on the save interface to close it. Next, the editor will explain Users brought us an introduction to how to remove watermarks. If you are interested, come and take a look! Scanner King usage tutorial How to remove the watermark with Scanner King? Answer: You can click on the save interface to edit the watermark removal in the PDF. Details: 1. Enter the software and click the [Camera] icon. 2. Photograph and scan the documents that need to be watermarked. 3. Click [→] to proceed to the next step. 4. After completing editing, click [✓]. 5. Click [Edit PDF]. 6. Select [Remove Watermark] below.

How to remove shortcut arrow in win11 How to remove shortcut arrow in win11 Jul 05, 2023 pm 02:17 PM

How to remove shortcut arrow in win11? Many Win11 users have created shortcut icons on the system desktop, but there is a small arrow-like symbol on the shortcut icon, which makes the overall icon look very ugly. So is there any corresponding method to remove the small arrow on the Windows 11 system shortcut icon? Many friends don’t know how to operate in detail. The editor below has compiled a tutorial on clearing the small arrow shortcuts on the desktop in Win11. If you are interested, follow the editor and read on! Tutorial on clearing the small arrow shortcuts on the desktop in win11 1. Open the menu bar and find Run or just win+R. 2. Enter regedit and click OK. 3. Locate HKEY_CLASSES_

How to remove mosaic How to remove mosaic How to remove mosaic How to remove mosaic Feb 22, 2024 pm 03:22 PM

Use the imitation stamp to pick up the color of the picture and then apply it. Tutorial Applicable Model: Lenovo AIO520C System: Windows 10 Professional Edition: Photoshop 2020 Analysis 1 First enter PhotoShop and open the mosaic picture. 2In the toolbar on the left, find and click Clone Stamp. 3 Then press and hold the Alt key on the keyboard. 4. Move the mouse to pick the color in the picture. 5Then release the Alt key on the keyboard. 6Finally, use the mouse to smear on the mosaic area to eliminate the mosaic. Supplement: What is the principle of mosaic removal? 1. If you want to remove mosaic from a picture, it is equivalent to painting on a canvas with an outline. Although the color aspect is easier to handle, it is still very difficult to complete. because

How to remove HTML tags from string in PHP? How to remove HTML tags from string in PHP? Mar 23, 2024 pm 09:03 PM

PHP is a commonly used server-side scripting language that is widely used in website development and back-end application development. When developing a website or application, you often encounter situations where you need to process HTML tags in strings. This article will introduce how to use PHP to remove HTML tags from strings and provide specific code examples. Why do you need to remove HTML tags? HTML tags are often included when processing user input or text obtained from a database. Sometimes we want to remove these HTML tags when displaying text

How to remove the word 'Qingyan' on Qingyan Camera How to remove the word 'Qingyan' on Qingyan Camera Mar 30, 2024 pm 02:51 PM

How to remove the word "Qingyan" from Qingyan Camera? When taking photos with Qingyan Camera APP, the word "Qingyan" will be left behind. Many friends don't know how to remove the word "Qingyan". Next, the editor brings the word "Qingyan" to the players. Tutorial on how to remove the word "light face" on the face camera. Interested players should come and take a look! Qingyan Camera usage tutorial: How to remove Qingyan characters from Qingyan Camera 1. First unlock the phone and enter the desktop, find the [Qingyan Camera] APP and open the entry page; 2. Then jump to the main page of the Qingyan Camera APP and click on the upper left corner [Circle] button; 3. Then the multi-function menu bar will expand at the top, select [Camera Settings]; 4. Finally, find the button behind [Watermark Settings] as shown in the picture below and slide it to dark color to remove it.

PHP Practical Tutorial: How to Remove Null Values ​​from Arrays PHP Practical Tutorial: How to Remove Null Values ​​from Arrays Mar 13, 2024 pm 12:30 PM

PHP Practical Tutorial: Method for Removing NULL Values ​​from Arrays In actual development, we often encounter situations where we need to remove NULL values ​​from arrays in order to better process data. PHP provides a variety of methods to achieve this function. Next, these methods will be introduced one by one and specific code examples will be given. Method 1: Use the array_filter() function. The array_filter() function can filter the elements in the array and return the elements in the array that meet the specified conditions. We can use this function to filter the array

PHP string manipulation: a practical way to effectively remove spaces PHP string manipulation: a practical way to effectively remove spaces Mar 24, 2024 am 11:45 AM

PHP String Operation: A Practical Method to Effectively Remove Spaces In PHP development, you often encounter situations where you need to remove spaces from a string. Removing spaces can make the string cleaner and facilitate subsequent data processing and display. This article will introduce several effective and practical methods for removing spaces, and attach specific code examples. Method 1: Use the PHP built-in function trim(). The PHP built-in function trim() can remove spaces at both ends of the string (including spaces, tabs, newlines, etc.). It is very convenient and easy to use.

See all articles