1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
2 <html xmlns:v="urn:schemas-microsoft-com:vml"><!-- InstanceBegin template="/Templates/base.dwt" codeOutsideHTMLIsLocked="false" -->
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\r
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\r
6 <meta http-equiv="Content-Language" content="ja">
\r
7 <meta http-equiv="Content-Script-Type" content="text/javascript">
\r
8 <meta http-equiv="Content-Style-Type" content="text/css">
\r
9 <meta http-equiv="imagetoolbar" content="no">
\r
10 <link rel="stylesheet" type="text/css" href="../stylesheets/common.css">
\r
11 <!-- InstanceBeginEditable name="doctitle" -->
\r
12 <title>マンガ状コンテンツを表示するための html + css の調査 | pettanR</title>
\r
13 <!-- InstanceEndEditable -->
\r
14 <!-- InstanceBeginEditable name="head" -->
\r
15 <style type="text/css">
\r
17 --------------------------------------------------------------------------------------*/
\r
18 .test1-pettanr-comic-wrapper {
\r
21 .test1-pettanr-comic-panel {
\r
22 border-style: solid;
\r
28 .test1-pettanr-comic-panel img,
\r
29 .test1-pettanr-comic-balloon {
\r
32 .test1-pettanr-comic-balloon img {
\r
36 .test1-pettanr-comic-balloon .test1-pettanr-comic-speach {
\r
38 table-layout: fixed;
\r
45 margin: 0 !important;
\r
47 .test1-pettanr-comic-speach tbody,
\r
48 .test1-pettanr-comic-speach tr,
\r
49 .test1-pettanr-comic-speach td {
\r
54 margin: 0 !important;
\r
55 vertical-align: middle;
\r
57 font-size: 14px; /* opera6で仕様 13px は不可 */
\r
62 --------------------------------------------------------------------------------------*/
\r
63 .test2-pettanr-comic-wrapper {
\r
66 .test2-pettanr-comic-panel {
\r
67 border-style: solid;
\r
73 .test2-pettanr-comic-panel img {
\r
76 .test2-pettanr-comic-balloon {
\r
79 .test2-pettanr-comic-balloon img {
\r
84 .test2-pettanr-comic-balloon div {
\r
91 .test2-pettanr-comic-balloon div p {
\r
92 display: table-cell;
\r
93 vertical-align: middle;
\r
95 margin: 0 !important;
\r
96 padding: 0 !important;
\r
97 *position: absolute;
\r
100 .test2-pettanr-comic-balloon div p span {
\r
103 *position: relative;
\r
108 --------------------------------------------------------------------------------------*/
\r
109 .test3-pettanr-comic-wrapper {
\r
112 .test3-pettanr-comic-panel {
\r
113 border-style: solid;
\r
114 border-color: #111;
\r
115 position: relative;
\r
119 .test3-pettanr-comic-panel img {
\r
120 position: absolute;
\r
123 .test3-pettanr-comic-balloon {
\r
124 position: absolute;
\r
126 .test3-pettanr-comic-balloon img {
\r
127 position: absolute;
\r
131 .test3-pettanr-comic-balloon p {
\r
132 margin: 0 !important;
\r
133 padding: 0 !important;
\r
135 position: absolute;
\r
141 *top: 50% !important;
\r
142 border: 1px solid red;
\r
144 .test3-pettanr-comic-balloon p span {
\r
145 display: table-cell;
\r
146 vertical-align: middle;
\r
147 text-align: center;
\r
150 *position: relative;
\r
152 font-size: 14px; /* opera6で仕様 13px は不可 */
\r
153 border: 1px solid blue;
\r
156 <!-- InstanceEndEditable -->
\r
160 <div id="general-content">
\r
161 <div id="outer-wrapper">
\r
164 <div class="base-content-width" style="position:relative;">
\r
165 <h1><a href="../index.html">pettanR</a></h1>
\r
166 <!-- global navi -->
\r
167 <div id="global-navi">
\r
168 <noscript id="noscript-alert">You need to have JavaScript enabled.</noscript>
\r
173 <div id="inner-wrapper" class="base-content-width">
\r
174 <!-- InstanceBeginEditable name="main_content" -->
\r
176 <div id="breadcrumb"><a href="index.html">テスト インデックス</a> > マンガ状コンテンツを表示するための html + css の調査</div>
\r
177 <h2>マンガ状コンテンツを表示するための html + css の調査</h2>
\r
178 <p>html 4.01 + css 2.1 で pettanR コミックを表示するための html 構造のテストページです.</p>
\r
179 <p>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどれか?このページを表示させつつ判断します.</p>
\r
180 <p>このページでは js を使用していないため ベクター画像の置き換えは行われず、反転画像はサーバのものが読み込まれます.</p>
\r
182 <h2><table> を使ったテキストの上下中央配置</h2>
\r
183 <p><table> タグを使ったレイアウトは多くのブラウザで意図した表示が期待できるが、html 文書としてはよろしくない.</p>
\r
184 <div class="test1-pettanr-comic-wrapper" style="width: 400px;">
\r
185 <div class="test1-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
186 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
187 <div class="test1-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
188 <img src="../system_pictures/_w5.gif">
\r
189 <table class="test1-pettanr-comic-speach"><tr><td>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</td></tr></table>
\r
191 <div class="test1-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
192 <img src="../system_pictures/_w19.gif">
\r
193 <table class="test1-pettanr-comic-speach"><tr><td>さて?</td></tr></table>
\r
198 <p>NN7, NN8, NN9, firefox 3.6, ie5.5, ie6, ie7, Iron5, Opera10, opera8, opera7</p>
\r
200 <p>opera6( overflow:hiddenが利かず要素がパネルをはみ出す ), Konqueror4.8(windows, さて?がずれる)</p>
\r
202 <p>NN6(テキスト表示位置がずれる), opera5( 日本語に非対応で文字化けする )</p>
\r
205 <p>パネルピクチャはひとつの <img> タグで表示されます.</p>
\r
206 <p>バルーンは、位置とサイズを決めるための <div> の中に吹きだし画像のための <img> と テキストを上下中央配置するための <table> からなる.</p>
\r
208 <div class="test1-pettanr-comic-wrapper" style="width: 400px;">
\r
209 <div class="test1-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
210 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
211 <div class="test1-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
212 <img src="../system_pictures/_w5.gif">
\r
213 <table class="test1-pettanr-comic-speach"><tr><td>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</td></tr></table>
\r
215 <div class="test1-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
216 <img src="../system_pictures/_w19.gif">
\r
217 <table class="test1-pettanr-comic-speach"><tr><td>さて?</td></tr></table>
\r
224 .test1-pettanr-comic-wrapper {
\r
227 .test1-pettanr-comic-panel {
\r
228 border-style: solid;
\r
229 border-color: #111;
\r
230 position: relative;
\r
234 .test1-pettanr-comic-panel img,
\r
235 .test1-pettanr-comic-balloon {
\r
236 position: absolute;
\r
238 .test1-pettanr-comic-balloon .test1-pettanr-comic-speach {
\r
239 position: absolute;
\r
240 table-layout: fixed;
\r
247 margin: 0 !important;
\r
249 .test1-pettanr-comic-speach tbody,
\r
250 .test1-pettanr-comic-speach tr,
\r
251 .test1-pettanr-comic-speach td {
\r
256 margin: 0 !important;
\r
257 vertical-align: middle;
\r
262 <h2>css:table-cell を使ったテキストの上下中央配置 及びクロスブラウザ対応 タグの少ないバージョン</h2>
\r
263 <p>html タグ構造は 先の <table> レイアウトに比べて自然.しかし <code>display:table-cell</code> などを使うため、より広範なブラウザに対応する、という点で不安が残る.</p>
\r
264 <p>参考にしたページ <a href="http://scuderia-web.com/tips/xhtml_css/div_vertical_align.php" target="_blank">tableを使わずdivで縦位置を指定</a></p>
\r
265 <div class="test3-pettanr-comic-wrapper" style="width: 400px;">
\r
266 <div class="test3-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
267 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
268 <div class="test3-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
269 <img src="../system_pictures/_w5.gif">
\r
270 <p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p>
\r
272 <div class="test3-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
273 <img src="../system_pictures/_w19.gif">
\r
274 <p><span>さて?</span></p>
\r
279 <p>NN7, NN8, NN9, firefox 3.6, ie5.5, ie6, ie7, Iron5, Opera10, opera8, opera7, Konqueror4.8(windows)</p>
\r
281 <p>opera6( overflow:hiddenが利かず要素がパネルをはみ出す )</p>
\r
283 <p>NN6(テキスト表示位置がずれる), opera5( 日本語に非対応で文字化けする )</p>
\r
286 <p>パネルピクチャはひとつの <img> タグで表示されます.</p>
\r
287 <p>バルーンは、位置とサイズを決めるための <div> の中に吹きだし画像のための <img> と テキストを上下中央配置するための <p> と <span> からなる.</p>
\r
289 <div class="test3-pettanr-comic-wrapper" style="width: 400px;">
\r
290 <div class="test3-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
291 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
292 <div class="test3-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
293 <img src="../system_pictures/_w5.gif">
\r
294 <p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p>
\r
296 <div class="test3-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
297 <img src="../system_pictures/_w19.gif">
\r
298 <p><span>さて?</span></p>
\r
305 .test3-pettanr-comic-wrapper {
\r
308 .test3-pettanr-comic-panel {
\r
309 border-style: solid;
\r
310 border-color: #111;
\r
311 position: relative;
\r
315 .test3-pettanr-comic-panel img {
\r
316 position: absolute;
\r
319 .test3-pettanr-comic-balloon {
\r
320 position: absolute;
\r
322 .test3-pettanr-comic-balloon img {
\r
323 position: absolute;
\r
327 .test3-pettanr-comic-balloon p {
\r
328 margin: 0 !important;
\r
329 padding: 0 !important;
\r
331 position: absolute;
\r
337 *top: 50% !important;
\r
339 .test3-pettanr-comic-balloon p span {
\r
340 display: table-cell;
\r
341 vertical-align: middle;
\r
342 text-align: center;
\r
345 *position: relative;
\r
351 <h2>css:table-cell を使ったテキストの上下中央配置 及びクロスブラウザ対応</h2>
\r
352 <p>table-cell 及び クロスブラウザ対応</p>
\r
353 <div class="test2-pettanr-comic-wrapper" style="width: 400px;">
\r
354 <div class="test2-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
355 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
356 <div class="test2-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
357 <img src="../system_pictures/_w5.gif">
\r
358 <div><p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p></div>
\r
360 <div class="test2-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
361 <img src="../system_pictures/_w19.gif">
\r
362 <div><p><span>さて?</span></p></div>
\r
367 <p>NN9, firefox 3.6, ie6</p>
\r
370 <!-- InstanceEndEditable -->
\r
375 <div id="footer-content"><!-- #BeginLibraryItem "/Library/footer.lbi" -->
\r
378 <div id="footer-item-container" class="base-content-width clearfix">
\r
379 <div class="footer-item-wrapper">
\r
380 <div class="footer-item">
\r
381 <h2>ぺったんR にようこそ</h2>
\r
389 <li><a href="index.html">Test Index</a></li>
\r
393 <div class="footer-item-wrapper">
\r
394 <div class="footer-item">
\r
397 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForAuthors" rel="me" target="_blank">作家向けドキュメント</a></li>
\r
398 <li>絵師向けドキュメント</li>
\r
399 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForDevelopers" rel="me" target="_blank">開発者向けドキュメント</a></li>
\r
400 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForWebmasters" rel="me" target="_blank">編集長向けドキュメント</a></li>
\r
404 <div class="footer-item-wrapper">
\r
405 <div class="footer-item">
\r
408 <li><a href="http://pettanr.heroku.com/" rel="me" target="_blank">pettanr.heroku.com</a></li>
\r
409 <li><a href="../work.html" rel="console">ユーザーコンソール</a></li>
\r
411 <h2>Ajax contents</h2>
\r
413 <li><a href="../help/jp.xml">help | jp</a></li>
\r
417 <div class="footer-item-wrapper" style="width:170px;">
\r
418 <div class="footer-item" style="padding-right:0;">
\r
423 <li><a href="../diary/itozyun.xml">itozyun's diary</a></li>
\r
431 <div id="copyright">Copyright (c) 2011-2012 pettanR team, some rights reserved.</div>
\r
432 </div><!-- #EndLibraryItem -->
\r
434 <script type="text/javascript">
\r
435 var has_server_support = false;
\r
437 <script type="text/javascript" src="../javascripts/common.js"></script>
\r
438 <!-- InstanceBeginEditable name="script" -->
\r
439 <!-- InstanceEndEditable -->
\r
441 <!-- InstanceEnd --></html>
\r