金子邦彦研究室プログラミングJavaScript による Web プログラミングjQuery UI のボタン

jQuery UI のボタン


<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
    <head>

        <meta http-equiv="Content-Type" content="text/html; initial-scale=1.0; charset=Shift_JIS" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <meta http-equiv="Content-Script-Type" content="text/javascript" />
        <meta http-equiv="MSThemeCompatible" CONTENT="yes" />

        <title>
            jQuery UI の例
        </title>
        <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery.ui.all.css" />
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"></script>
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> 
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>

    <script>
      <!--
              jQuery.noConflict();
          jQuery(document).ready(function($) {
            $( 'button, input:submit, a', '.jquery-ui-button' ) . button();
          } );
          // -->
    </script>

        <style>
          .jquery-ui-button {
          font-size: 24px;
          margin: 20px;
      float: left;
          }
        </style>
    </head>

    <body>
      <div >
    <div class="jquery-ui-button"><button >ボタン</button></div>
    <div class="jquery-ui-button"><input type="submit" value="submit ボタン"/></div>
    <div class="jquery-ui-button"><a href="https://www.kkaneko.jp/">リンク先</a></div>
      </div>

    </body>
</html>