Allows the Asp.net webpage to be normally browsed by Firefox.

Source: Internet
Author: User

The main difference is that DIV is interpreted as table. However, this should be a Ms error.
Add the following code to your webconfig:

<! --, Rob Eberhardt-http://slingfive.com/demos/browserCaps/ -->

<Browsercaps>
<! -- Gecko based browsers (Netscape 6 +, Mozilla/Firebird,...) // -->
<Case match = "^ Mozilla/5/. 0/([^)] */) (Gecko/[-/d] + )? (? 'Type' [^ // D] *) ([/d] *)/(? 'Version '(? 'Major'/d + )(? 'Minor'/./d + )(? 'Letters '/W *). * ">
Browser = Gecko
Type =$ {type}
Frames = true
Tables = true
Cookies = true
Javascript = true
Javaapplets = true
ECS mascriptversion = 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 =$ {major}
Minorversion =$ {minor}
<Case match = "^ B" with = "$ {letters}">
Beta = true
</Case>
</Case>
</Case>

<! -- Applewebkit based browsers (Safari...) // -->
<Case match = "applewebkit /(? 'Version '(? 'Major'/d )(? 'Minor'/d + )(? 'Letters '/W *) ">
Browser = applewebkit
Version =$ {version}
Majorversion =$ {major}
Minorversion = 0. $ {minor}
Frames = true
Tables = true
Cookies = true
Javascript = true
Javaapplets = true
ECS mascriptversion = 1.5
W3cdomversion = 1.0
Css1 = true
Css2 = true
Xml = true
Tagwriter = system. Web. UI. htmltextwriter
<Case match = "applewebkit /(? 'Version '(? 'Major'/d )(? 'Minor'/d + )(? 'Letters '/W *) (/(khtml, like Gecko /))? (? 'Type' [^ // D] *)/. * $ ">
Type =$ {type}
</Case>
</Case>
<! -- Konqueror // -->
<Case match = "Konqueror /(? 'Version '(? 'Major'/d + )(? 'Minor'/./d + )(? 'Letters ');/W *(? 'Platform' [^/)] *) ">
Browser = Konqueror
Version =$ {version}
Majorversion =$ {major}
Minorversion =$ {minor}
Platform =$ {platform}
Type = Konqueror
Frames = true
Tables = true
Cookies = true
Javascript = true
Javaapplets = true
ECS mascriptversion = 1.5
W3cdomversion = 1.0
Css1 = true
Css2 = true
Xml = true
Tagwriter = system. Web. UI. htmltextwriter
</Case>
</Browsercaps>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.