Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Obtenir du gras sur un bouton ???

12 réponses
Avatar
X
Bonjour,

Je n'arrive pas à obtenir du gras sur un bouton, je fais ça:
<input
type=button
style="height:28"
style="width:270"
style="cursor:hand"
style="background:#c0c0c0"
style="font size:16"
style="font.bold=true"
style="color:#009933"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'";>

Pourtant <b> fonctionne, lui, avec la police par défaut...

Avez-vous un remède svp ???

Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------

10 réponses

1 2
Avatar
CrazyCat
X wrote:
Bonjour,

Je n'arrive pas à obtenir du gras sur un bouton, je fais ça:
<input
type=button
style="height:28"
style="width:270"
style="cursor:hand"
style="background:#c0c0c0"
style="font size:16"
style="font.bold=true"
style="color:#009933"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'";>


<input type="button" style="height: 28px; width:270px; cursor: hand;
background: #C0C0C0; font-size: 16px; font-weight: bold; color:
#009933;" value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'">

En utilisant les bons attributs de style, ça doit le faire :)

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net

Avatar
X
Merci, je vais voir ça :o)

--
Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"CrazyCat" a écrit dans le message de news:
dspko6$geh$
X wrote:
Bonjour,

Je n'arrive pas à obtenir du gras sur un bouton, je fais ça:
<input
type=button
style="height:28"
style="width:270"
style="cursor:hand"
style="background:#c0c0c0"
style="font size:16"
style="font.bold=true"
style="color:#009933"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'";>


<input type="button" style="height: 28px; width:270px; cursor: hand;
background: #C0C0C0; font-size: 16px; font-weight: bold; color: #009933;"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'">

En utilisant les bons attributs de style, ça doit le faire :)

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net



Avatar
X
Heu, pour respecter ma syntaxe, jécris comment avec "style", car c'est plus
clair en colonnes qu'en ligne:

style="font-weight:bold"

Est-ce que c'est bon ça ???

--

Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"CrazyCat" a écrit dans le message de news:
dspko6$geh$
X wrote:
Bonjour,

Je n'arrive pas à obtenir du gras sur un bouton, je fais ça:
<input
type=button
style="height:28"
style="width:270"
style="cursor:hand"
style="background:#c0c0c0"
style="font size:16"
style="font.bold=true"
style="color:#009933"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'";>


<input type="button" style="height: 28px; width:270px; cursor: hand;
background: #C0C0C0; font-size: 16px; font-weight: bold; color: #009933;"
value="JE VOUDRAIS DU GRAS"
onClick="document.location.href='http://www.x.y'">

En utilisant les bons attributs de style, ça doit le faire :)

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net



Avatar
CrazyCat
X wrote:
style="font-weight:bold"
Est-ce que c'est bon ça ???


C'est bon, mais je te conseillerais de mettre un ";" à la fin (après
chaque attribut).

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net

Avatar
X
Ah, non, ça marche pas, voici:

<input
type=button
style="height:28px";
style="width:300px";
style="cursor:hand";
style="background:#c0c0c0";
style="font size:16px";
style="font-weight:bold";
style="color:#0000ff";
value="Je voudrais du gras ici";
onClick="document.location.href='http://irolog.free.fr'";>

-1- Ou qu'est l'erreur stp ???

-2- Peux-tu me dire pourquoi quand je mets un point-virgule derrière button
(type=button;" le bouton devient enfoncé ???

-3- Met-on un ";" ) value...; ???

--
Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"CrazyCat" a écrit dans le message de news:
dspmu5$hof$
X wrote:
style="font-weight:bold"
Est-ce que c'est bon ça ???


C'est bon, mais je te conseillerais de mettre un ";" à la fin (après
chaque attribut).

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net



Avatar
X
Ça y est j'ai trouvé, mais tu ne vas pas être cntent, lol, comme ça,
ça marche:

<input
type=button
style=height:28
style=width:300
style=cursor:hand
styleºckground:#c0c0c0
style=font size:16
style=font-weight:bold
style=color:#0000ff
value="Télécharger gratuitement pour essayer"
onClick="document.location.href='http://irolog.free.fr'";>

--
Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"CrazyCat" a écrit dans le message de news:
dspmu5$hof$
X wrote:
style="font-weight:bold"
Est-ce que c'est bon ça ???


C'est bon, mais je te conseillerais de mettre un ";" à la fin (après
chaque attribut).

--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net



Avatar
CrazyCat
X wrote:
Ah, non, ça marche pas, voici:
type=button


type="button"

style="height:28px";
style="width:300px";
style="cursor:hand";
style="background:#c0c0c0";
style="font size:16px";


style="font-size: 16px;"

-1- Ou qu'est l'erreur stp ???


Il y en a plusieurs:
- les ; se mettent DANS le style, pas après.
- il faut respecter les mots-clés (font-size != font size)

-2- Peux-tu me dire pourquoi quand je mets un point-virgule derrière button
(type=button;" le bouton devient enfoncé ???


parce que le type "button;" n'existe pas

-3- Met-on un ";" ) value...; ???


Reprend le code que je t'ai donné et relis le bien, même si la
présentation n'est pas celle que tu veux, la syntaxe est juste.
Et ça n'a rien à voir avec du JS (FU2 fciw.auteurs)


--
Aide informatique: http://help-info.forumactif.com
Humour: http://www.chatfou.com
Tchattez en liberté: http://www.crazy-irc.net

Avatar
ASM

Salut Troll,

Ça y est j'ai trouvé, mais tu ne vas pas être cntent, lol, comme ça,
ça marche:


tu es sûr ?

ou bien çà ne marche qu'avec IE ... ? :-(

Je suis ABSOLUMENT certain que çà ne fonctionne *qu'avec* IE ! ! !

pourtant c'est si simple ...

<input
type=button
style="height: 28px;
width: 300px;
cursor: hand;
/* hack IE5 */
cursor: pointer;
/* fin hack IE */
background: #c0c0c0;
font-size: 16px;
font-weight: bold;
style=color: #0000ff"
value="Télécharger gratuitement pour essayer"
onClick="document.location.href='http://irolog.free.fr'";>




--
Stephane Moriaux et son [moins] vieux Mac

Avatar
X
Salut Stéphane, alors y en aurait, parait-il, qui n'auraient pas l'ie6, qui
n'auraient pas XP, qui n'auraient pas de PC, ni... d'A... d'ADSL,
non.............
--
Merci beaucoup, au revoir et à bientôt :o)
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Pincipe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"ASM" a écrit dans le message
de news: 43f078a1$0$23286$

Salut Troll,

Ça y est j'ai trouvé, mais tu ne vas pas être cntent, lol, comme
ça, ça marche:


tu es sûr ?

ou bien çà ne marche qu'avec IE ... ? :-(

Je suis ABSOLUMENT certain que çà ne fonctionne *qu'avec* IE ! ! !

pourtant c'est si simple ...

<input
type=button
style="height: 28px;
width: 300px;
cursor: hand;
/* hack IE5 */
cursor: pointer;
/* fin hack IE */
background: #c0c0c0;
font-size: 16px;
font-weight: bold;
style=color: #0000ff"
value="Télécharger gratuitement pour essayer"
onClick="document.location.href='http://irolog.free.fr'";>




--
Stephane Moriaux et son [moins] vieux Mac



Avatar
Olivier Miakinen

Salut Stéphane, alors y en aurait, parait-il, qui n'auraient pas l'ie6, qui
n'auraient pas XP, qui n'auraient pas de PC, ni... d'A... d'ADSL,
non.............
[ suivi d'une signature de 5 kilomètres ]



Pffffff...

[ suivi positionné ]

--
Olivier Miakinen
Troll du plus sage chez les conviviaux : le nouveau venu, avec
son clan, s'infiltre dans les groupes de nouvelles. (3 c.)

1 2