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

実行結果

div要素と四隅画像で作る角丸テーブル

タイトル
ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。
タイトル
ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。
タイトル
ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。
タイトル
ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。
タイトル
グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。
タイトル
イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。
タイトル
オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。
タイトル
ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。

設置サンプルのソース

<!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" />
<title>角丸ボックス(背景画像・div要素使用・白背景用・カラーバリエーション有) | PHP & JavaScript Room</title>
<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" />
<meta name="copyright" content="Copyright (c) PHP & JavaScript Room" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/module/include/css/kadomaru/cnbox/cnbox.css" />
<style type="text/css">
body {
   margin:0 auto; padding:0;
   background:#fff url(/content/img/skin/bg.gif) repeat top left;
   font-family:verdana,sans-serif;
   font-size:81%;
   text-align:center;
}
div.wrap {
   margin:0 auto; padding:20px 0;
   width:80%;
   text-align:center;
}
</style>
<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 class="wrap">
<h1>div要素と四隅画像で作る角丸テーブル</h1>
<!-- div.cngray [start] -->
<div class="cngray">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cngray [end] // -->

<!-- div.cnblue [start] -->
<div class="cnblue">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。ブルーの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnblue [end] // -->

<!-- div.cnpink [start] -->
<div class="cnpink">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。ピンクの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnpink [end] // -->

<!-- div.cnbeige [start] -->
<div class="cnbeige">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。ベージュの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnbeige [end] // -->

<!-- div.cngreen [start] -->
<div class="cngreen">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。グリーンの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cngreen [end] // -->

<!-- div.cnyellow [start] -->
<div class="cnyellow">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。イエローの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnyellow [end] // -->

<!-- div.cnorange [start] -->
<div class="cnorange">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。オレンジの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnorange [end] // -->

<!-- div.cnblack [start] -->
<div class="cnblack">
   <div class="cntop_l">
      <div class="cntop_r">
         <div class="cnbtm">
            <div class="cnbody">
               <!-- start -->
               <dl>
                  <dt>タイトル</dt>
                  <dd>ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。ブラックの角丸ボックスです。</dd>
               </dl>
               <!-- end // -->
            </div>
         </div>
      </div>
   </div>
</div>
<!-- div.cnblack [end] // -->

</div>
</body>
</html>