text-align属性用于对齐文本的最后一行。您可以尝试运行以下代码以在CSS3中实现text-align-last属性-
<!DOCTYPE html> <html> <head> <style> .mydiv { text-align-last: right; } </style> </head> <body> <h1>text-align-last Property</h1> <div class = "mydiv"> <p>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.</p> </div> </body> </html>