如何在flex中显示两个div时将第二个div右对齐?

How to align the second div to right when the two divs are displayed in flex?

我希望第二个 div 右对齐以将其放置在应有的位置,但是如果它们以 flex 显示是否可行?帮帮我,这个让我很头疼。

login.html

    <div style="display: flex;">
      <div (click)="openPasswordRecovery()" style="color:gray">
        Remember Me
      </div>
      <div style="text-align: right; color:gray">
        Forgot Password?
      </div>              
    </div>

使用space-between,最后一项总是到最后:

<div style="display: flex; justify-content: 'space-between'">

在此处了解有关 justify-content 的更多信息