[C#] Pb attribut style builder / firefox
Bonjour à tous,
Quelqu'un peut-il m'aider sur ce problème:
Je développe un intranet asp.net sur C# Builder 2006.
Si je défini un style sur un WebControl p.e. width="65px", j'obtiens:
Sur IE 6
Code:
1 2
|
<input name="textBox1" type="text" id="textBox1" style="width:65px;" /> |
Et sur Firefox:
Code:
1 2
|
<input name="textBox1" type="text" id="textBox1" /> |
Dans Firefox, l'attribut style manque.
Est-ce un problème au niveau d'une option dans l'IDE, ou alors dans le serveur web (assayé avec IIS, cassini)
Un très grand merci à celui/celle qui peut me mettre sur une piste.
Avec mes meilleures salutations
Florian
Pb attribut style c# builder / firefox
Ben voila,
En cherchant bien, j'ai trouvé cet article :D :
http://www.asptoday.com/Content.aspx?id=2339
Pour ceux à qui ca peut servir, il suffit de rajouter cette portion xml au fichier web.config :
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
|
<browserCaps>
<case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken'
(?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-\d]+)(?'VendorProductToken'
(?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))">
type=${type}
</case>
<case> <!-- plain Mozilla if no VendorProductToken found -->
type=Mozilla
</case>
</filter>
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
version=${version}
majorversion=0${major}
minorversion=0${minor}
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps> |
A+
Florian