当前位置:网站首页>Solve the problems of English word overflow / word break in WordPress articles
Solve the problems of English word overflow / word break in WordPress articles
2022-06-21 15:39:00 【I am Huang Daxian yes】
A lot of times ,WordPress Chinese themes may be developed , Missed the optimization of the English typesetting of the article , There are several situations :
- Long English 、 Long link , Overflow exceeds the display range , No newline
- When English words break lines , When the word breaks
Solve the above two problems , There were 2 Set of plans .
Word wrap
word-wrap: break-word; word-break: normal;
English words don't take apart words
word-break: keep-all; // Line breaks are only allowed at half space or hyphen . word-wrap: break-word; // When the word is too long , Try wrapping first , It is still too long after the line break , You can also wrap lines inside words . white-space: pre-wrap; // Keep all spaces and carriage returns , However, line folding is allowed , Be careful : When a lot of white space appears , Not to add .
Generally speaking , It needs to be in the style sheet belonging to the content of the article , Add the following css style , Can solve .
Align English words 、 The word does not break the line
word-break: keep-all; word-wrap: break-word; white-space: pre-wrap; text-align: justify;
Take a chestnut
If you are using the same theme :PandaPRO The theme , Or it happens to have a building block plug-in installed , Then you can do this without changing the theme file code , Complete the transformation .
First , Find the outer layer of the article p Style label for :.post-content p, .post-content figure In building block optimization settings , find Customize modular , stay Header custom code Insert style code in , Here's the picture :
.post-content p,
.post-content figure {
word-break: keep-all;
word-wrap: break-word;
white-space: pre-wrap;
}preservation , Return to the website article page , After clearing the browser cache , Refresh the website , have a look , Is it working .
边栏推荐
- Phantom star VR product details 32: Infinite War
- Counter: a simple and free network traffic analysis tool
- I don't really want to open an account online. Is it safe to open an account online
- Niuke - real exercise-01
- Rk3399 platform development series explanation (network debugging) 7.32. What is network routing?
- Is it safe to open a securities account by downloading the app of qiniu school? Is there a risk?
- So many statistical charts? This visualizer is great~~
- 階乘求和
- Alibaba cloud energy consumption treasure will be released soon to help SMEs' green upgrading and participate in the carbon neutral trillion market
- Practice of geospatial data in Nepal graph
猜你喜欢

GO语言-接口

Design of LVDS interface based on FPGA

C multithreading

Leetcode: number of good subsets (backtracking + state compression +dfs + pruning)

Fundamentals of C language 13: file input / output

Three sides of the headline: tostring(), string Valueof, (string) forced rotation. What is the difference

Word thesis typesetting tutorial
![Analysis of China's social financing scale and financing structure in 2021: RMB loans to the real economy account for more than 60%[figure]](/img/93/218ba91dc6e9866e186c004ac18e0a.jpg)
Analysis of China's social financing scale and financing structure in 2021: RMB loans to the real economy account for more than 60%[figure]

Gather high-quality ar application developers, and help the AR field prosper with technology

Based on Transformer's artificial neural network, the image of organic structure is transformed into molecular structure
随机推荐
Xiao Lan does experiments (count the number of primes)
Retrieve the compressed package password
Phantom star VR product details 31: escape from the secret room
Finding minimum spanning tree by using union search set
Rk3399 platform development series explanation (network debugging) 7.32. What is network routing?
[cicadaplayer] read and write of HLS stream
Apple was fined by Dutch regulators, totaling about RMB 180million
What is the server room
Why do you want to be naked with a router
Crontab pit stepping record: manual script execution is normal, but crontab timed script execution is abnormal
[Yugong series] February 2022 wechat applet -app Networktimeout of JSON configuration attribute
小蓝做实验(统计质数个数)
Shared memory communication between processes
Factorial summation
对Integer进行等值比较时踩到的一个坑
原生JS路由,iframe框架
Torch utils. Data: analyze the whole process of data processing
Operator Tour (I)
Indexes, constraints and views in Oracle Database
Kubeneters installation encountered gcr The IO image warehouse cannot be pulled