Sasa Posted February 6, 2008 Report Posted February 6, 2008 ka lai izskaidro šo: kā tiek pievienota jauna rindiņa tā man vis sākumā nemanāmi nobīdās bet kad nonak pie 10 rindiņas tā jau nobīte ir pamanāma!
Sasa Posted February 6, 2008 Author Report Posted February 6, 2008 [css] input#z{ BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; margin-bottom:11px; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-SIZE: 8pt; OVERFLOW: hidden; FONT-FAMILY: Tahoma; } [/css] jaunā input elementa izveidošana: var lyr = document.getElementById('input_area'); //layer to create under var newEl = document.createElement('input'); //element type var newEl_1 = document.createElement('<br>'); //element type <br> newEl.setAttribute('id','z'); newEl.setAttribute('name','attach'+i) newEl.setAttribute('type','file') newEl.setAttribute('size','35') newEl.setAttribute('style','padding:2px') // newEl.onchange= function () { addElement(); } lyr.appendChild(newEl); lyr.appendChild(newEl_1); forma kurā pievienojas: <form name="frmSend" method="POST" enctype="multipart/form-data" action="uploadTester.asp" onSubmit="return onSubmitForm();"> <DIV id=input_area style="LEFT: 16.405cm; POSITION: absolute; TOP:2.37cm " > <input id='z' name="attach1" type="file" size=35 style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; Z-INDEX: 1; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; " > <br> </DIV> <input type=submit value="Upload"> </form>
andrisp Posted February 6, 2008 Report Posted February 6, 2008 Skaidrs, tev tur nav tabula, bet gan katra kolona ir savā div elementā. Vienkārši norādi mazāku margin-bottom tiem file inputiem.
Recommended Posts