中status屬性詳解

2021-06-18 10:33:36 字數 386 閱讀 5296

中的status 使用方法

1:#status.odd 是否奇數行

2:#status.count 當前行數

3:#status.index 當前行的序號,從0開始『#status.count=#status.index+1』

4:#status.first 是否第一行

5:#status.last 是否最後一行

6:#status.modules(int) 當前行數取模

status被設成stuts,在iterator的裡面就可以通過#stuts取得iteratorstatus的物件。

iteratorstatus類包含當前序號資訊,如是否第乙個或最後乙個,是否為奇數序號。這些資訊在我們做

格式化顯示的時候,顯得非常有用。

css中cursor屬性詳解

css中cursor屬性詳解 語法 cursor auto all scroll col resize crosshair default hand move help no drop not allowed pointer progress row resize text vertical tex...

css中display屬性詳解

display屬性值 none 此元素不會被顯示。block 此元素將顯示為塊級元素,此元素前後會帶有換行符。inline 預設。此元素會被顯示為內聯元素,元素前後沒有換行符。inline block 行內塊元素。css2.1 新增的值 list item 此元素會作為列表顯示。run in 此元素...

Android中shape屬性詳解

shape的形狀,預設為矩形,可以設定為矩形 rectangle 橢圓形 oval 線性形狀 line 環形 ring android shape rectangle oval line ring android radius dimension 全部的圓角半徑android topleftradi...