I set 'text align: justify;' in the style, but the generated PDF is inconsistent with the expected effect. Is there a problem with my setting? Or the generated problem.
Here is HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
.text{
width: 200px;
height: 200px;
font-size: 16px;
text-align: justify;
font-family: 'Microsoft YaHei';
}
</style>
<body>
<div class="text">
<p>
测试测试1测试测试32测试a测fs试33测试测da试3测试测试测试bds测试测dsdsa试测ff试试测试测dsd试测试测试测试试测试测试测试测试测试
</p>
</div>
</body>
</html>
Please see the attachment for details of chrome screenshots and PDF screenshots
Here is HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
.text{
width: 200px;
height: 200px;
font-size: 16px;
text-align: justify;
font-family: 'Microsoft YaHei';
}
</style>
<body>
<div class="text">
<p>
测试测试1测试测试32测试a测fs试33测试测da试3测试测试测试bds测试测dsdsa试测ff试试测试测dsd试测试测试测试试测试测试测试测试测试
</p>
</div>
</body>
</html>
Please see the attachment for details of chrome screenshots and PDF screenshots