Float:right reverses order of spans

后端 未结 16 1955
你的背包
你的背包 2020-11-27 16:44

I have the HTML:

Bookmix Offline
16条回答
  •  春和景丽
    2020-11-27 17:00

    If you want to make your list items aligned right without reversing the order dont float your list items. Make them inline instead. text-align:right your span

    div {
        text-align:right;
    }
    
    span {
        display:inline;
    }
    

提交回复
热议问题