how to align one item in the OL to the right while

2020-03-31 03:41发布

i am using the breadcrumb class of Bootstrap in the OL element. Aside from the breadcrumb info, I want to add a last update info to the right of the OL. I used the text-align:right but it didn't work. Is it possible? thanks for the help.

here is my code:

"<ol class='breadcrumb'>" +
"<li>2015</li>" + 
"<li>Feb Release</li>" +
"<li style:'text-align:right'>Last Update: 3:15pm</li>" +
"</ol>";

1条回答
做自己的国王
2楼-- · 2020-03-31 04:07

Use Bootstrap's pull-right class...

<ol class="breadcrumb">
<li>2015</li>
<li>Feb Release</li>
<li class="pull-right">Last Update: 3:15pm</li>
</ol>

http://codeply.com/go/jb4uBgIIX1

查看更多
登录 后发表回答