Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiline Textbox in FireFox
Message
 
À
07/06/2005 11:55:30
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01020972
Message ID:
01021087
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Al,

By default FireFox and Mozilla browsers are considered downlevel browsers so they don't use style sheets, which results in very different looking Uis between the two browsers. There are a number of ways to fix this uing the BrowserCaps section in Machine or web.config.

The shortcut I use is to just default all rendering to the 4.0 version of the HtmlTextWriter:
<configuration>
   <system.web>
    <browserCaps>
         TagWriter=System.Web.UI.HtmlTextWriter
    </browserCaps>
   </system.web>
</configuration>
You can google for a complete browserCaps section that works with Mozilla style browsers that you can use instead of this generic setting.

+++ Rick ---

>VS.NET 2003
>
>In FF, multiline textboxes render significantly differently than in IE. IE respects the specified box height in pixels and the selected font, FF does not - it somehow appears to default to the height of the box when originally designed, and the font is a small monospaced font (maybe Courier). In the case I'm working on right now, I originally designed textboxes to be 4 lines high (64px). I later changed them to be 10 lines high (170px). IE has updated fine, FF still shows just 4 lines.
>
>Another rendering difference is that a single-line textbox renders narrower than in IE for a given .Columns specification.
>
>It would be nice to get the forms to look the same in FF as in IE. Am I missing settings I should be using for these controls? Are there any workarounds if not? I don't want to use any 3rd party controls, at this point I'll accept rendering differences in FF instead.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform