iPhoneでテーブル全体を塗りつぶす2x2グリッドを作成しようとしています。 現在のところ、次のようになります。http://dl.dropbox.com/u/182509/photo.PNGdivの一番左にテーブルを配置
右側の列の斜線と左の隙間に注意してください。
いずれも修正できません。
関連するCSS:
body { margin: 0; position: absolute; height: 100%; }
.full { position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-color: white; }
table { border-width: 0px; border-spacing: 0px; border-style: hidden; border-color: gray; border-collapse: collapse; background-color: white; width: 100%; height: 100%; left: 0; top: 0px; margin: 0; padding: 0px; position: absolute; }
td { border-width: 1px; padding: 1px; border-style: solid; border-color: gray; background-color: white; width: 50%; height: 160px; }
とhtml:あなたのtd
は1pxのために国境を設定している、それは我々が何であるかの全幅に追加されますので
<div id="helpView" class="full">
<table id="help">
<tr>
<td>Hey..</td>
<td>Hi.</td>
</tr>
<tr>
<td>Hello.</td>
<td>Greetings!</td>
</tr>
</table>
</div>
すべてのヘルプは
tr {width:100%;パディング:0px。 } –
tdの幅を48%減らす –
これはうまくいきませんでした...前と同じ(両方とも) – JJJollyjim