• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
helong
博客园    首页    新随笔    联系   管理    订阅  订阅
09 2011 档案
在JAVA中使用正则表达式

摘要:String number="^\\+?[1-9][0-9]*$"; //非零的正整数Pattern pu = Pattern.compile(number);Matcher mu =pu.matcher("1");System.out.println("验证非零的正整数:"+mu.matches());得到的结果是:true 阅读全文
posted @ 2011-09-28 10:29 helong 阅读(352) 评论(0) 推荐(0)
HTML Button 背景图片样式作为按钮显示

摘要:效果图:实现代码:<input type="button" class="handcursor" onclick='doLogin()' tabindex="5" style="background:url(<%=contextPath%>/img/eds.jpg); border-style:none; width:124px; height:35px; background-repeat:no-repeat;" /> 阅读全文
posted @ 2011-09-19 12:06 helong 阅读(20339) 评论(0) 推荐(1)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3