案例:jQuery UI案例     状态:可编辑再运行    进入横版
AخA
        if ( /red|green|blue/.test(key) && (value < 0 || value > 255) ) {
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 部件库(Widget Factory) - 默认功能</title>
6
  <link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
7
  <script src="/js/jqu/jquery.min1.10.2.js"></script>
8
  <script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <style>
11
  .custom-colorize {
12
    font-size: 20px;
13
    position: relative;
14
    width: 75px;
15
    height: 75px;
16
  }
17
  .custom-colorize-changer {
18
    font-size: 10px;
19
    position: absolute;
20
    right: 0;
21
    bottom: 0;
22
  }
23
  </style>
24
  <script>

 运行结果 
 北美留学生论坛