用Eclipse开发iPhone Web 应用程序
清单 2. 定制 textRow CSS 扩展以正确显示静态文本
/* Adding a new row CSS style to iUi for displaying blocks of text */
position: relative;
border-bottom: 1px solid #999999;
-webkit-border-radius: 0;
text-align: right;
}
text-align: left;
margin: 5px 8px 5px 10px;
padding: 0px 0px 0px 0px;
}
fieldset > .textRow:last-child {
border-bottom: none !important;
}
清单 3 显示了 java.math.BigDecimal 的一种构造方法的详细信息页面。
清单 3. 使用 textRow 元素的 HTML 详细信息页面
class="panel">
public BigDecimal(long, MathContext)
Translates a
long
into a
BigDecimal
, with rounding according to the context settings.
The scale of the BigDecimal
, before any rounding, is zero.
Parameters
long val
: long
value to be converted
to BigDecimal
.
MathContext mc
: the context to use.
Throws
ArithmeticException
: if the result is inexact but
the rounding mode is UNNECESSARY
.