W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> div { text-align:justify; text-justify:inter-word; } </style> </head> <body> <h1>CSS text-justify 实例</h1> <div>Shanghai is the largest city by population in the People's Republic of China (PRC) and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology, and transport. It is a major financial center and the busiest container port in the world.</div> <p><b>提示:</b>请调整浏览器窗口的大小,来查看齐行效果。</p> <p><b>注释:</b>text-justify 属性只在 IE 中有效。</p> </body> </html>