Jump to content
php.lv forumi

tables height 100%


cucumber

Recommended Posts

kapec kods neiet? td naizpleshas pa visu ekranu , bet ja ninem "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">" pirmo rindu viss trada ? :(

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
<title>interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 </head>
 <body style="margin: 0px; padding: 0px;">

  <!-- <table style="width: 100%; height: 100%;"  border="1px"> nomainot neko nedot ? ?? -->

<table width="100%" height="100%"  border="1px">
<tr>
	<td>
	 
	</td>		
</tr>		
<tr>
	<td>
			 
	</td>		
</tr>		
<tr>
	<td>
			 
	</td>		
</tr>		
</table>

 </body>
</html>

Link to comment
Share on other sites

Ja iztiepjas, bet nepareizi, es gribu, lai laukums 1 un 3 ir constants px, bet vidus ir dinamisks , bet vinsh sanak nobida leja pa n px cik ir augshejais laukums ? Ko var darit lietas laba?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
<title>interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
margin: 0px; 
padding: 0px;
height:100%; 
}
-->
</style>
 </head>
 <body>

<table  style="height:100%; width:100%;" border="2px">
<tr>
	<td  style="height: 20px;">
	 1
	</td>		
</tr>		
<tr>
	<td style="height: 100%;">
		2		 
	</td>		
</tr>		
<tr>
	<td  style="height: 30px;">
		3		 
	</td>		
</tr>		
</table>

 </body>
</html>

Link to comment
Share on other sites

Tiek attēlots 1:1 kā ir uzdrukāts, ja tu norādiji <td style="height:100%;">, tad kaut kur arī tam jāparādas, bet visā visumā, ja tu gribi dinamiski, nenorādi vidējā <td height un lieto parsto HTML standartu

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Link to comment
Share on other sites

bet pie ta standarta nevar tak validet lapas :(

Un tad kada jega xhtml, ja del vina rodas vairak problemu neka labuma ? Tapat uz dazadiem browseriem savadak interpritejas .

Edited by cucumber
Link to comment
Share on other sites

nu bet ja sak validet pec

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

, tas jau vairs nav xhtml , jo tas ir vienkarshi html, bet vajaga lai xhtml validejas. Un kur var validet html 4.01 ieksh validator.3w.org vai kaut kas tam lidzigs

Link to comment
Share on other sites

bet es gribu validet ka xhtml ar sho headru <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

, bet tad blin izpleshas nepareizi ?

Link to comment
Share on other sites

paga, tā rinda nosaka PIRMĀM KĀRTĀM "rendera uzvedību", nevis tikai validācijas veidu... (patiesība validē jau tieši pēc tā, kas ir pateikts..., bet kods ta līks...)

Ne jau smukumam tā rinda ielikta..

Edited by Delfins
Link to comment
Share on other sites

kavar panakt dat, ta ka es gribu un lai validejas (ar neliku kodu :) ) ? Tas ir piem pirma sadala ir header kas ir 50px augsta centra ir 100%, un footer ir 30px un viss ielien viena lapa ???

Edited by cucumber
Link to comment
Share on other sites

×
×
  • Create New...