0
CSS:
.p1
{
direction:rtl;
text-align:right;
float:right;
}
檢視:
<div class="p1">
@{
for (int i = 0; i < 5; i++)
{
@Html.ActionLink(i.ToString(), "../home/index/" + i);
}
}
</div>
輸出爲:1 2 3 4 5
,但我想:5 4 3 2 1