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

Solution to the problem that mysql local login cannot use port number to log in

Recently, when I was using Linux to log in locall...

How to clean up the disk space occupied by Docker

Docker takes up a lot of space. Whenever we run c...

JavaScript implements circular carousel

This article shares the specific code of JavaScri...

Vue+swiper realizes timeline effect

This article shares the specific code of vue+swip...

JavaScript Design Pattern Command Pattern

The command pattern is a behavioral design patter...

How to create WeChat games with CocosCreator

Table of contents 1. Download WeChat developer to...

Method of implementing recursive components based on Vue technology

describe This article introduces a method to impl...

Ten important questions for learning the basics of Javascript

Table of contents 1. What is Javascript? 2. What ...

Bootstrap FileInput implements image upload function

This article example shares the specific code of ...

Mysql 5.6.37 winx64 installation dual version mysql notes

If MySQL version 5.0 already exists on the machin...

Implementation of Docker deployment of SQL Server 2019 Always On cluster

Table of contents Docker deployment Always on clu...

XHTML Getting Started Tutorial: Simple Web Page Creation

Create your first web page in one minute: Let'...

Detailed explanation of the new features of ES9: Async iteration

Table of contents Asynchronous traversal Asynchro...

Implementation steps for Docker deployment of SpringBoot applications

Table of contents Preface Dockerfile What is a Do...