PHP & JavaScript Room :: 設置サンプル

実行結果

ユーティリティ:ブラウザと特徴検出:jQuery.supportの使用例 | jQuery

▼インラインフレームに対するボックスモデルを返します。

設置サンプルのソース

<!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; charset=utf-8" />
      <meta http-equiv="Content-Language" content="ja" />
      <meta http-equiv="Content-Script-Type" content="text/javascript" />
      <meta http-equiv="Content-Style-Type" content="text/css" />
      <meta http-equiv="imagetoolbar" content="no" />
      <title>ユーティリティ:ブラウザと特徴検出:jQuery.supportの使用例 | jQuery</title>
      <link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript">
         $(function(){
            var s="";
            s+="このフレームはW3Cのボックスモデルを使用している:<strong>" +jQuery.support.boxModel + "</strong><br>";
            s+="現在のCSSフロートの値にアクセスするためにstyle.cssFloatを使用できる:<strong>" +jQuery.support.cssFloat + "</strong><br>";
            s+="ブラウザはgetAttribute('href')の結果をそのまま返す:<strong>" +jQuery.support.hrefNormalized + "</strong><br>";
            s+="innerHTMLが使用されているとき、ブラウザはlink要素をシリアライズする:<strong>" +jQuery.support.htmlSerialize + "</strong><br>";
            s+="innerHTMLが使用されているとき、ホワイトスペースを保持する:<strong>" +jQuery.support.leadingWhitespace + "</strong><br>";
            s+="要素がコピーされているとき、ブラウザはその要素が持つイベントハンドラも一緒にコピーしない:<strong>" +jQuery.support.noCloneEvent + "</strong><br>";
            s+="オブジェクト要素にgetElementByTagName('*')を使用するとすべての子孫要素を返す:<strong>" +jQuery.support.objectAll + "</strong><br>";
            s+="ブラウザはopacityプロパティを適切に解釈できる:<strong>" +jQuery.support.opacity + "</strong><br>";
            s+="インラインのスクリプトを挿入するのにappendChild/createTextNodeを使用してそれらを実行できる<strong>" +jQuery.support.scriptEval + "</strong><br>";
            s+="getAttribute('style')は、要素によって指定されたインラインスタイルを返すことができる:<strong>" +jQuery.support.style + "</strong><br>";
            s+="ブラウザはtbody要素のないテーブル要素を許可する:<strong>" +jQuery.support.tbody + "</strong><br>";
            $("#res").html(s);
         });
      </script>
   <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
   <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP &amp; JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
      <div id="wrap">
         <h1>ユーティリティ:ブラウザと特徴検出:jQuery.supportの使用例 | jQuery</h1>
         <p>▼インラインフレームに対するボックスモデルを返します。</p>
<!-- CODE -->
         <p id="res"></p>
<!-- / CODE -->
      </div>
   </body>
</html>