<Asp: Label> If the control contains more content than the control column width, the control will automatically wrap the text if it is a Chinese character. if the content is only a letter, the control will not wrap the text, the screen is extended until the display is complete, and the interface looks ugly.
Baidu once found the solution, as long as the following sentence is added to the style:
Style = "word-break: Break-all"
However, there are more than labels in the project. If you change one by one, I am afraid I don't know that the monkey year and month can be changed. So I define the Label display in the whole CSS:
Label {
Word-break: Break-all;
}
Refresh the page, why? Does not work.
View the page source code. The original <asp: Label> is not interpreted as the <label> statement, but is interpreted as <span>, dizzy, so the CSS is modified.
SPAN {
Word-break: Break-all;
}