Home  >  Article  >  Web Front-end  >  How come there are spaces in the image within a fixed-width DIV? ? _html/css_WEB-ITnose

How come there are spaces in the image within a fixed-width DIV? ? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:02926browse



Why does this happen? Is there a way to align the top and bottom?


Reply to discussion (solution)

Have you used CSS control?

Are you using CSS controls?

Don’t know how to control it? Can you give me a hint?

Are there letters/numbers/symbols in each line?
English is 1 byte, Chinese is 2 bytes, the lengths are different.

<html><body><div style="width: 100px; border: 1px solid #CCC;"><p style="text-align: justify; text-justify: inder-ideograph;">使用text-align属性对文本对齐方式进行规定</p></div></body></html>

Found on Baidu, http://www.andylouse.net/ARTICLE/2011/11/289.html

I also tried to use div instead of table, But it’s not easy to find

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn