CSS automatically intercepts the specified length string and displays the end... Support FF browser

CSS automatically intercepts the specified length string and displays the end... Support FF browser
<style type="text/css">

Copy code
The code is as follows:

<!--
.div1{
width:200px;
}
.div1 span{
white-space:nowrap;
text-overflow:ellipsis; /* for internet explorer */
overflow:hidden;
width:168px;
display:block;
float:left;
}

html>body .div1:after{/* for FF*/
content: "...";
margin-left:5px;
}

-->
</style>

<div class="div1"><span>The compatibility of IE7 browser recently released by Microsoft has indeed added a heavy burden to some web page developers</span></div>


<<:  Use of SerialPort module in Node.js

>>:  In-depth analysis of Flex layout in CSS3

Recommend

JavaScript implements simple date effects

The specific code of JavaScript date effects is f...

MySql login password forgotten and password forgotten solution

Method 1: MySQL provides a command line parameter...

Vue project realizes paging effect

The paging effect is implemented in the vue proje...

A detailed introduction to Linux memory management and addressing

Table of contents 1. Concept Memory management mo...

Small details of web front-end development

1 The select tag must be closed <select><...

Centos6.5 glibc upgrade process introduction

Table of contents Scenario Requirements glibc ver...

MySQL 5.7.17 installation graphic tutorial (windows)

I recently started learning database, and I feel ...

Complete example of Vue encapsulating the global toast component

Table of contents Preface 1. With vue-cli 1. Defi...

New settings for text and fonts in CSS3

Text Shadow text-shadow: horizontal offset vertic...

jQuery implements the mouse drag image function

This example uses jQuery to implement a mouse dra...

Solution to Docker pull timeout

Recently, Docker image pull is very unstable. It ...

MySql index detailed introduction and correct use method

MySql index detailed introduction and correct use...

Tutorial on installing MySQL 5.7.9 using RPM package under CentOS 7

Recorded MySQL 5.7.9 installation tutorial, share...