1. Use the <nobr> tag to achieve no line break Copy code The code is as follows:<div>Hello world! <nobr> Hello world!<nobr></div> 2. Use the <nowrap element> tag Copy code The code is as follows:<div nowrap>Hello world! Hello world! Hello world! Hello world!</div> 3 Force no line break Copy code The code is as follows:div{ white-space:nowrap; } 4. If there are two divs, float can be used to avoid line breaks Copy code The code is as follows:<div class="class1">hello</div> <div class="class2">world! </div> .class1 {float:left;} 5. Display can also be used in div to achieve no line break Copy code The code is as follows:<div class="class1">hello</div> <div class="class2">world! </div> .class1 {display:inline;} .class2{display:inline;} |
<<: Linux service monitoring and operation and maintenance
>>: MySQL Series 12 Backup and Recovery
Preface Today I installed MySQL and found that th...
In the MySQL database, null is a common situation...
There are many commands used in the system, so ho...
<br />Original address: http://andymao.com/a...
1. Briefly describe the traditional LRU linked li...
Recently, the company has begun to evaluate all s...
Table of contents Preface Scenario Analysis Summa...
This article mainly introduces the process of imp...
Docker installation Use the official installation...
1. Uninstalling MySQL 5.7 1.1查看yum是否安裝過mysql cd y...
What is a generator? A generator is some code tha...
This article records the detailed installation pr...
Table of contents 1. useState hook 2. useRef hook...
Table of contents 1. What is componentization? 2....
Table of contents Preface Example summary Preface...