-1
Wie zu beheben this problem?Wie man dieses Layout repariert? Rand oder Polsterung?
Das Starren von "Ich habe gelesen und verstanden ..." und der Beginn von "Unterschrift des Antragstellers ..." sind nicht im gleichen Tempo. Einer ist in <p>
und einer ist eine Tabelle in <div>
. Hier ist mein Code dieses Teils.
<p style="margin:0;"><b>I have read and understand the “Personal Information Collection Statement” attached in this form.</b></p>
<p style="margin:0; height:6px;"> </p>
<p style="margin:0;">Please confirm that your instructions have been clearly, accurately, and completely set out in this form
before signing it.</p>
<p style="margin:0;"> </p>
<div style="width:100%; padding:0px; margin:0px;">
<table style="width:100%; padding:0px; margin:0px;">
<tr><td style="width:60%;">
<div class="row" style="display: flex; flex-direction: row; padding:12px 12px 0px 0px; margin:0px;">
<label><strong>Applicant’s signature: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td>
<td style="width:40%;">
<div class="row" style="display: flex; flex-direction: row; padding:12px 12px 0px 12px; margin:0px;">
<label><strong>Date: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td></tr>
<tr><td style="width:60%;">
<div class="row" style="display: flex; flex-direction: row; padding:13px 12px 0px 0px; margin:0px;">
<label><strong>Applicant’s name: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td>
<td style="width:50%;">
</td></tr>
</table>
<p style="margin:0; padding:0px;"> </p><p style="margin:0; paddihttp://stackoverflow.com/questions/ask#ng:0px;"> </p><p style="margin:0; padding:0px;"> </p>
</div>
Nach dem "cellspace = 0" Methode verwendet wird, ist es viel besser. Aber zwischen ihnen ist immer noch ein kleiner Zwischenraum. Dies ist die other application I in ähnlicher Weise. (Ich benutze dieses Beispiel, weil es die verschiedenen viel einfacher zeigt, kann das eine oben verwendeten schwieriger ist es, das Problem zu sehen..)
-Code für diesen Artikel:
<h2 style="font-size:140%; margin:0;"><strong>Your Registration Information</strong></h2>
<p style="margin:0; height:15px;"> </p>
<div style="width:100%; padding:0px; margin:0px;">
<table style="width:100%; padding:0px; margin:0px;" cellspacing="0">
<tr><td style="width:50%;">
<div class="row" style="display: flex; flex-direction: row; ">
<label><strong>Name: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td>
<td style="width:50%;">
<div class="row" style="display: flex; flex-direction: row; margin-left:10px; ">
<label><strong>Email: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td></tr>
<tr><td style="width:50%;">
<div class="row" style="display: flex; flex-direction: row; padding:13px 0px 13px 0px;">
<label><strong>Phone: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td>
<td style="width:50%;">
<div class="row" style="display: flex; flex-direction: row; margin-left:10px; padding:13px 0px 13px 0px;">
<label><strong>Reference number: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td></tr>
<tr><td style="width:400px;">
<div class="row" style="display: flex; flex-direction: row; padding: 0px 0px 2px 0px;">
<label><strong>Date of submission: </strong></label>
<span style="flex: 1; display: block;">
<input style="width: 100%;
margin-left: 5px;
border: none;
border-bottom: 1px solid #000;
background: transparent;
outline: none !important;"/>
</span>
</div>
</td><td></td></tr>
</table>
</div>
Thank Sie sehr für Ihre Hilfe!
gibt Zellenabstand für die Tabelle als 0
Sie können einen 'margin-left: -1px' für div innerhalb des td geben. – z0mBi3
Problem kann immer noch nicht gelöst werden ... – alexwong820
Antwort
I margin-left hinzugefügt haben: -1px; in der erforderlichen div.
Quelle
2016-08-05 06:21:11 z0mBi3
Oh Entschuldigung, ich dachte, du sprichst von der td-Eigenschaft. Mein Fehler. Danke für Ihre Hilfe! – alexwong820
Set Cellspacing Attribut für die Tabelle 0.
Quelle
2016-08-05 03:49:45 z0mBi3
Danke für Ihre Hilfe. Aber ich habe immer noch ein kleines Problem damit. Ich habe meinen ursprünglichen Beitrag oben bearbeitet. Vielen Dank. – alexwong820
Ich möchte nur fragen, warum brauche ich so "margin-left: -1px;"? Gibt es ein Problem in meinem ursprünglichen Code? – alexwong820
Polsterung ist für die Eltern .. Marge für das Kind ist. also entweder die 2 für die Positionierung verwenden. oder Sie
position:relative
auf ein Objekt festlegen und deren Position (links, oben, rechts, unten )Quelle
2016-08-05 03:53:21 Darence30
Verwandte Themen