Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 02/11/2011, 11h23   #1
Invité de passage
 
Inscription : mai 2006
Messages : 13
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 13
Points : 1
Points : 1
Par défaut Largeur d'une textbox dans une table HTML

Je fais des tableaux en html, et les zones de saisie sont en xul.
Mais je voudrais que mes balises <textbox> est une largeur identique à leur parent, en l'occurrence une balise <html:td>.
Le flex est inopérant, et j'ai essayé de gérer avec la CSS, mais sans résultat.
Avez-vous une solution, svp ?

Ci-joint, un exemple :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href='data:text/css,box,
textbox input
{
 
}
.monflex
{
    color:red;
}
' type='text/css'?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
    <!-- your code here -->
<box xmlns:html="http://www.w3.org/1999/xhtml">
<html:table border="1" cellspacing="0" cellpadding="0" >
    <html:col />
    <html:col />
    <html:col />
 
    <html:tr>
      <html:td colspan="2" ><description value="Un texte très long qui fait que les cellules textbox ci-dessus n'occupent pas toute la place disponible "/></html:td>
        <html:td >
            <textbox
               deplacable="false"                                  
               duplicable="false" />
        </html:td>
 
    </html:tr>
 
    <html:tr >
        <html:td >
            <textbox class="monflex" value="test"
               deplacable="false"                                   
               duplicable="false" />
        </html:td>
        <html:td>
            <textbox class="monflex"
               deplacable="false"                                  
               duplicable="false" />
        </html:td>
        <html:td>
            <textbox class="monflex"
               deplacable="false"                                 
               duplicable="false" />
        </html:td>
 
        </html:tr>
 
        <html:tr>
            <html:td >
                <textbox class="monflex"
               deplacable="false"                                  
               duplicable="false" />
            </html:td>
            <html:td>
                <textbox class="monflex"
               deplacable="false"                                  
               duplicable="false" />
            </html:td>
            <html:td>
                <textbox class="monflex"
               deplacable="false"                                 
               duplicable="false" />
        </html:td>
 
        </html:tr>
 
 
    </html:table> 
</box>
</window>
manu_b est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/11/2011, 13h54   #2
Modérateur
 
Avatar de polymorphisme
 
Homme Grégory Roche
GED (Gestion Electronique de Documentation)
Inscription : octobre 2009
Messages : 1 067
Détails du profil
Informations personnelles :
Nom : Homme Grégory Roche
Âge : 38
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : GED (Gestion Electronique de Documentation)

Informations forums :
Inscription : octobre 2009
Messages : 1 067
Points : 1 445
Points : 1 445
Bonjour,

je ne connais pas Flex, mais le CSS peut être inopérant parce que l'attribut href ne pointe pas sur une feuille de style CSS :
Code :
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
__________________
polymorphisme.com
Article : Installation de Cocoon
Je ne réponds pas aux MP à caractère technique.
polymorphisme est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 12h44.


 
 
 
 
Partenaires

Hébergement Web