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/site.css">
\r
11 <link rel="stylesheet" type="text/css" href="../stylesheets/peta.common.css">
\r
12 <link rel="stylesheet" type="text/css" href="../stylesheets/system.css">
\r
13 <!-- InstanceBeginEditable name="doctitle" -->
\r
14 <title>マンガ状コンテンツを表示するための html + css の調査 | pettanR</title>
\r
15 <!-- InstanceEndEditable -->
\r
16 <!-- InstanceBeginEditable name="head" -->
\r
17 <style type="text/css">
\r
19 --------------------------------------------------------------------------------------*/
\r
20 .test1-pettanr-comic-wrapper {
\r
23 .test1-pettanr-comic-panel {
\r
24 border-style: solid;
\r
30 .test1-pettanr-comic-panel img,
\r
31 .test1-pettanr-comic-balloon {
\r
34 .test1-pettanr-comic-balloon img {
\r
38 .test1-pettanr-comic-balloon .test1-pettanr-comic-speach {
\r
40 table-layout: fixed;
\r
47 margin: 0 !important;
\r
49 .test1-pettanr-comic-speach tbody,
\r
50 .test1-pettanr-comic-speach tr,
\r
51 .test1-pettanr-comic-speach td {
\r
56 margin: 0 !important;
\r
57 vertical-align: middle;
\r
59 font-size: 14px; /* opera6で仕様 13px は不可 */
\r
64 --------------------------------------------------------------------------------------*/
\r
65 .test2-pettanr-comic-wrapper {
\r
68 .test2-pettanr-comic-panel {
\r
69 border-style: solid;
\r
75 .test2-pettanr-comic-panel img {
\r
78 .test2-pettanr-comic-balloon {
\r
81 .test2-pettanr-comic-balloon img {
\r
86 .test2-pettanr-comic-balloon div {
\r
93 .test2-pettanr-comic-balloon div p {
\r
94 display: table-cell;
\r
95 vertical-align: middle;
\r
97 margin: 0 !important;
\r
98 padding: 0 !important;
\r
99 *position: absolute;
\r
102 .test2-pettanr-comic-balloon div p span {
\r
105 *position: relative;
\r
110 --------------------------------------------------------------------------------------*/
\r
111 .test3-pettanr-comic-wrapper {
\r
114 .test3-pettanr-comic-panel {
\r
115 border-style: solid;
\r
116 border-color: #111;
\r
117 position: relative;
\r
121 .test3-pettanr-comic-panel img {
\r
122 position: absolute;
\r
125 .test3-pettanr-comic-balloon {
\r
126 position: absolute;
\r
128 .test3-pettanr-comic-balloon img {
\r
129 position: absolute;
\r
133 .test3-pettanr-comic-balloon p {
\r
134 margin: 0 !important;
\r
135 padding: 0 !important;
\r
137 position: absolute;
\r
143 *top: 50% !important;
\r
144 border: 1px solid red;
\r
146 .test3-pettanr-comic-balloon p span {
\r
147 display: table-cell;
\r
148 vertical-align: middle;
\r
149 text-align: center;
\r
152 *position: relative;
\r
154 font-size: 14px; /* opera6で仕様 13px は不可 */
\r
155 border: 1px solid blue;
\r
158 <!-- InstanceEndEditable -->
\r
162 <div id="general-content">
\r
163 <div id="outer-wrapper">
\r
166 <div class="base-content-width" style="position:relative;">
\r
167 <h1><a href="../index.html">pettanR</a></h1>
\r
168 <!-- global navi -->
\r
169 <div id="global-navi">
\r
170 <noscript id="noscript-alert">You need to have JavaScript enabled.</noscript>
\r
175 <div id="inner-wrapper" class="base-content-width">
\r
176 <!-- InstanceBeginEditable name="main_content" -->
\r
178 <div id="breadcrumb"><a href="index.html">テスト インデックス</a> > マンガ状コンテンツを表示するための html + css の調査</div>
\r
179 <h2>マンガ状コンテンツを表示するための html + css の調査</h2>
\r
180 <p>html 4.01 + css 2.1 で pettanR コミックを表示するための html 構造のテストページです.</p>
\r
181 <p>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどれか?このページを表示させつつ判断します.</p>
\r
182 <p>このページでは js を使用していないため ベクター画像の置き換えは行われず、反転画像はサーバのものが読み込まれます.</p>
\r
184 <h2><table> を使ったテキストの上下中央配置</h2>
\r
185 <p><table> タグを使ったレイアウトは多くのブラウザで意図した表示が期待できるが、html 文書としてはよろしくない.</p>
\r
186 <div class="test1-pettanr-comic-wrapper" style="width: 400px;">
\r
187 <div class="test1-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
188 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
189 <div class="test1-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
190 <img src="../system_pictures/_w5.gif">
\r
191 <table class="test1-pettanr-comic-speach"><tr><td>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</td></tr></table>
\r
193 <div class="test1-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
194 <img src="../system_pictures/_w19.gif">
\r
195 <table class="test1-pettanr-comic-speach"><tr><td>さて?</td></tr></table>
\r
200 <p>NN7, NN8, NN9, firefox 3.6, ie5.5, ie6, ie7, Iron5, Opera10, opera8, opera7</p>
\r
202 <p>opera6( overflow:hiddenが利かず要素がパネルをはみ出す ), Konqueror4.8(windows, さて?がずれる)</p>
\r
204 <p>NN6(テキスト表示位置がずれる), opera5( 日本語に非対応で文字化けする )</p>
\r
207 <p>パネルピクチャはひとつの <img> タグで表示されます.</p>
\r
208 <p>バルーンは、位置とサイズを決めるための <div> の中に吹きだし画像のための <img> と テキストを上下中央配置するための <table> からなる.</p>
\r
210 <div class="test1-pettanr-comic-wrapper" style="width: 400px;">
\r
211 <div class="test1-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
212 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
213 <div class="test1-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
214 <img src="../system_pictures/_w5.gif">
\r
215 <table class="test1-pettanr-comic-speach"><tr><td>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</td></tr></table>
\r
217 <div class="test1-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
218 <img src="../system_pictures/_w19.gif">
\r
219 <table class="test1-pettanr-comic-speach"><tr><td>さて?</td></tr></table>
\r
226 .test1-pettanr-comic-wrapper {
\r
229 .test1-pettanr-comic-panel {
\r
230 border-style: solid;
\r
231 border-color: #111;
\r
232 position: relative;
\r
236 .test1-pettanr-comic-panel img,
\r
237 .test1-pettanr-comic-balloon {
\r
238 position: absolute;
\r
240 .test1-pettanr-comic-balloon .test1-pettanr-comic-speach {
\r
241 position: absolute;
\r
242 table-layout: fixed;
\r
249 margin: 0 !important;
\r
251 .test1-pettanr-comic-speach tbody,
\r
252 .test1-pettanr-comic-speach tr,
\r
253 .test1-pettanr-comic-speach td {
\r
258 margin: 0 !important;
\r
259 vertical-align: middle;
\r
264 <h2>css:table-cell を使ったテキストの上下中央配置 及びクロスブラウザ対応 タグの少ないバージョン</h2>
\r
265 <p>html タグ構造は 先の <table> レイアウトに比べて自然.しかし <code>display:table-cell</code> などを使うため、より広範なブラウザに対応する、という点で不安が残る.</p>
\r
266 <p>参考にしたページ <a href="http://scuderia-web.com/tips/xhtml_css/div_vertical_align.php" target="_blank">tableを使わずdivで縦位置を指定</a></p>
\r
267 <div class="test3-pettanr-comic-wrapper" style="width: 400px;">
\r
268 <div class="test3-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
269 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
270 <div class="test3-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
271 <img src="../system_pictures/_w5.gif">
\r
272 <p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p>
\r
274 <div class="test3-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
275 <img src="../system_pictures/_w19.gif">
\r
276 <p><span>さて?</span></p>
\r
281 <p>NN7, NN8, NN9, firefox 3.6, ie5.5, ie6, ie7, Iron5, Opera10, opera8, opera7, Konqueror4.8(windows)</p>
\r
283 <p>opera6( overflow:hiddenが利かず要素がパネルをはみ出す )</p>
\r
285 <p>NN6(テキスト表示位置がずれる), opera5( 日本語に非対応で文字化けする )</p>
\r
288 <p>パネルピクチャはひとつの <img> タグで表示されます.</p>
\r
289 <p>バルーンは、位置とサイズを決めるための <div> の中に吹きだし画像のための <img> と テキストを上下中央配置するための <p> と <span> からなる.</p>
\r
291 <div class="test3-pettanr-comic-wrapper" style="width: 400px;">
\r
292 <div class="test3-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
293 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
294 <div class="test3-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
295 <img src="../system_pictures/_w5.gif">
\r
296 <p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p>
\r
298 <div class="test3-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
299 <img src="../system_pictures/_w19.gif">
\r
300 <p><span>さて?</span></p>
\r
307 .test3-pettanr-comic-wrapper {
\r
310 .test3-pettanr-comic-panel {
\r
311 border-style: solid;
\r
312 border-color: #111;
\r
313 position: relative;
\r
317 .test3-pettanr-comic-panel img {
\r
318 position: absolute;
\r
321 .test3-pettanr-comic-balloon {
\r
322 position: absolute;
\r
324 .test3-pettanr-comic-balloon img {
\r
325 position: absolute;
\r
329 .test3-pettanr-comic-balloon p {
\r
330 margin: 0 !important;
\r
331 padding: 0 !important;
\r
333 position: absolute;
\r
339 *top: 50% !important;
\r
341 .test3-pettanr-comic-balloon p span {
\r
342 display: table-cell;
\r
343 vertical-align: middle;
\r
344 text-align: center;
\r
347 *position: relative;
\r
353 <h2>css:table-cell を使ったテキストの上下中央配置 及びクロスブラウザ対応</h2>
\r
354 <p>table-cell 及び クロスブラウザ対応</p>
\r
355 <div class="test2-pettanr-comic-wrapper" style="width: 400px;">
\r
356 <div class="test2-pettanr-comic-panel" style="border-width: 2px; height: 235px;">
\r
357 <img src="../resource_pictures/1.png" width="166" height="252" style="left: 178px; top: -2px; z-index: 0;">
\r
358 <div class="test2-pettanr-comic-balloon" style="width: 200px; height: 160px; left: -29px; top: 39px; z-index: 1;">
\r
359 <img src="../system_pictures/_w5.gif">
\r
360 <div><p><span>ぺったんR 仕様の html によるコミック状表示が可能なブラウザはどの範囲か?</span></p></div>
\r
362 <div class="test2-pettanr-comic-balloon" style="width: 100px; height: 80px; left: 300px; top: 80px; z-index: 2;">
\r
363 <img src="../system_pictures/_w19.gif">
\r
364 <div><p><span>さて?</span></p></div>
\r
369 <p>NN9, firefox 3.6, ie6</p>
\r
372 <!-- InstanceEndEditable -->
\r
377 <div id="footer-content"><!-- #BeginLibraryItem "/Library/footer.lbi" -->
\r
380 <div id="footer-item-container" class="base-content-width clearfix">
\r
381 <div class="footer-item-wrapper">
\r
382 <div class="footer-item">
\r
383 <h2>ぺったんR にようこそ</h2>
\r
391 <li><a href="index.html">Test Index</a></li>
\r
395 <div class="footer-item-wrapper">
\r
396 <div class="footer-item">
\r
399 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForAuthors" rel="me" target="_blank">作家向けドキュメント</a></li>
\r
400 <li>絵師向けドキュメント</li>
\r
401 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForDevelopers" rel="me" target="_blank">開発者向けドキュメント</a></li>
\r
402 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForWebmasters" rel="me" target="_blank">編集長向けドキュメント</a></li>
\r
406 <div class="footer-item-wrapper">
\r
407 <div class="footer-item">
\r
410 <li><a href="http://pettanr.heroku.com/" rel="me" target="_blank">pettanr.heroku.com</a></li>
\r
411 <li><a href="../work.html" rel="console">ユーザーコンソール</a></li>
\r
413 <h2>Ajax contents</h2>
\r
415 <li><a href="../help/jp.xml">help | jp</a></li>
\r
419 <div class="footer-item-wrapper" style="width:170px;">
\r
420 <div class="footer-item" style="padding-right:0;">
\r
425 <li><a href="../diary/itozyun.xml">itozyun's diary</a></li>
\r
433 <div id="copyright">Copyright (c) 2011-2012 pettanR team, some rights reserved.</div>
\r
434 </div><!-- #EndLibraryItem -->
\r
436 <script type="text/javascript">
\r
437 var has_server_support = false;
\r
439 <!-- InstanceBeginEditable name="script" -->
\r
440 <!-- InstanceEndEditable -->
\r
442 <!-- InstanceEnd --></html>
\r