model shows text overflow problem

Problem Description

Part of the text is displayed outside the scope of the modal

 

problem analysis

The display text is not set, such as hiding beyond the range, intercepting, wrapping, etc.

Solution

Control the content of the model

/*1.强制不换行*/
p { 
	white-space:nowrap;
}
 
/*2.自动换行*/ 
p { 
	word-wrap:break-word; 
}
 
/*3.强制英文单词断行*/
p { 
	word-break:break-all; 
}

Effect reference:

 

Guess you like

Origin blog.csdn.net/bulucc/article/details/129022494