|
|
|
|
Bonjour,
J'essaye depuis maintenant plusieurs heure (c'est un peu hyperbolisé mais c'est pour dire que j'y est passé du temps ^^) de définir une hauteur maximum a un tableau en HTML ou ce tableau est dynamique, en vain. Quand je dis dynamique, c'est qu'il affichera le contenu d'une base de données et donc cela créera une nouvelle à chaque fois !
Est-il possible de mettre une scrollbar a ce tableau a partir d'une taille limite ????
J'ai essayé <table style="max-height: 20%"> ou aussi l'attribue overflow: auto et hidden mais rien n'y fait ! :(
S'il vous plait c'est urgent ! Je dois présenter ce projets vendredi devant des patrons ! :s
LOL la haine !
A+
Gaerebut
Il y a 2 règles d'or pour réussir dans la vie :
-Règle 1: ne jamais dire tout ce que l'on sait...
-Règle 2: ...Configuration: Windows Vista
Firefox 3.0.1
http://www.commentcamarche.net/html/htmlframes.php3
|
Non c'est démodé ça maintenant les frames ^^
|
Tu mets ton tableau...
|
Ok, ça marche toujours pas ... lol
|
Bjr
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="fr" lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style> .container { position : absolute; left : 100px; top : 150px; width : 300px; height : 100px; overflow : auto; border-style : solid; border-width : 1px; border-color : #ff0000; } td { white-space: nowrap; border-style : solid; border-width : 1px; border-color : #1010a0; } table { border-collapse : collapse; } </style> </head> <body> Test tableau <div class="container"> <table border="0" cellspacing="0" cellpadding="3"> <tr> <td>Demo ligne 1-1</td> <td>Demo ligne 1-2</td> <td>Demo ligne 1-3</td> </tr> <tr> <td>Demo ligne 2-1</td> <td>Demo ligne 2-2</td> <td>Demo ligne 2-3</td> </tr> <tr> <td>Demo ligne 3-1</td> <td>Demo ligne 3-2</td> <td>Demo ligne 3-3</td> </tr> <tr> <td>Demo ligne 4-1</td> <td>Demo ligne 4-2</td> <td>Demo ligne 4-3</td> </tr> <tr> <td>Demo ligne 5-1</td> <td>Demo ligne 5-2</td> <td>Demo ligne 5-3</td> </tr> <tr> <td>Demo ligne 6-1</td> <td>Demo ligne 6-2</td> <td>Demo ligne 6-3</td> </tr> </table> </div> </body> PhP Il y a 10 types de personnes dans le monde : ceux qui comprennent le binaire et les autres ... |
Merci beaucoup à toi mais moi aussi j'ai fait pareil ...
|
Ben avec une iframe même combat : ok sour IE7 et FF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="fr" lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style> .container { position : absolute; left : 100px; top : 150px; width : 300px; height : 100px; overflow : auto; border-style : solid; border-width : 1px; border-color : #ff0000; } </style> </head> <body> Test tableau <iframe class="container" src="tableau.htm" ></iframe> </body> tableau.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="fr" lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <style> body { margin : 0px; padding : 0px; } td { white-space: nowrap; border-style : solid; border-width : 1px; border-color : #1010a0; } table { border-collapse : collapse; } </style> </head> <body> <table border="0" cellspacing="0" cellpadding="3"> <tr> <td>Demo ligne 1-1</td> <td>Demo ligne 1-2</td> <td>Demo ligne 1-3</td> </tr> <tr> <td>Demo ligne 2-1</td> <td>Demo ligne 2-2</td> <td>Demo ligne 2-3</td> </tr> <tr> <td>Demo ligne 3-1</td> <td>Demo ligne 3-2</td> <td>Demo ligne 3-3</td> </tr> <tr> <td>Demo ligne 4-1</td> <td>Demo ligne 4-2</td> <td>Demo ligne 4-3</td> </tr> <tr> <td>Demo ligne 5-1</td> <td>Demo ligne 5-2</td> <td>Demo ligne 5-3</td> </tr> <tr> <td>Demo ligne 6-1</td> <td>Demo ligne 6-2</td> <td>Demo ligne 6-3</td> </tr> </table> </body> A mon avis ta librairie window.js = grosse daube ! PhP Il y a 10 types de personnes dans le monde : ceux qui comprennent le binaire et les autres ... |