0
点赞
收藏
分享

微信扫一扫

GridView、Repeater等数据控件列数字、货币和日期的显示格式 .

若如初梘 2022-09-06 阅读 58


前端css

1.页面显示效果方面

   text-transform:uppercase //在文本框中输入字母后自动转换为大写

   cursor:pointer//鼠标指上去呈现块状

2.<a>查找记录</a>,鼠标经过时出现外框,移出时外框消失

    link, a:active, a:visited{border:none; display:block; height:20px; width:100px}
  a:hover{text-decoration:underline; border: solid 2px #efdedf; display:block; height:20px; width:100px}

前端设计 c#
GridView、Repeater等数据控件列数字、货币和日期的显示格式 .

形式 语法 结果 注释
数字 {0:N2} 12.36  
数字 {0:N0} 13  
货币 {0:c2} $12.36  
货币 {0:c4} $12.3656  
货币 "¥{0:N2}" ¥12.36  
科学计数法 {0:E3} 1.23E+001  
百分数 {0:P} 12.25% P and p present the same.
日期 {0:D} 2006年11月25日  
日期 {0:d} 2006-11-25  
日期 {0:f} 2006年11月25日 10:30  
日期 {0:F} 2006年11月25日 10:30:00  
日期 {0:s} 2006-11-26 10:30:00  
时间 {0:T} 10:30:00

举报

相关推荐

0 条评论