- 博客(4)
- 收藏
- 关注
原创 table表格td设置宽度后文字太多自动换行
table表格td设置宽度后文字太多导致自动换行 主要需要两部: 1.设置表格table的样式为style="table-layout:fixed;" 2.然后设置td的样式为style="word-wrap:break-word;" 代码如下: <table width="88%" class="table1 tc mt10" style="table-layout:fixed...
2013-09-20 16:19:54 1506
原创 js的数字改成大小写
var stmp = ""; function nst(t,m){ if(t.value==stmp) return; if(isNaN(t.value)){ alert("请输入数字"); } else{ var ms = t.value.replace(/[^\d\.]/g,"").replace(/(\.\d{2}).+$/,"$1").rep...
2013-09-13 16:43:47 169
原创 让文本框只录入数字
让文本框只输入数字 <input name="disCounts" type="text" onKeyUp="this.value=this.value.replace(/\D/g,'');" />
2013-09-08 18:03:20 81
原创 java人民币大写
人民币大写的类 package com.capinfo.test; public class MoneyUtil { /** 大写数字 */ private static final String[] NUMBERS = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒",
2013-09-03 21:21:39 78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人