ASP.NET中的Menu控件在谷歌浏览器下显示异常的解决办法

在App_Browsers文件夹中添加Browsers文件,内容如下: 

 


<!--
可在 <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers 中找到现有的浏览器定义
-->
< browsers >
    
< browser  id ="Safari3"  parentID ="Safari1Plus" >
        
< identification >
            
< userAgent  match ="Safari/\d+\.\d+"   />
        
</ identification >
        
< capture >
            
< userAgent  match ="Version/(?'version'\d+\.\d+)"   />
        
</ capture >
        
< capabilities >
            
< capability  name ="browser"  value ="Safari3"   />
            
< capability  name ="version"  value ="${version}"   />
        
</ capabilities >
        
< controlAdapters >
            
< adapter  controlType ="System.Web.UI.WebControls.Menu"
                     adapterType
=""   />
        
</ controlAdapters >
    
</ browser >

    
< browser  id ="GoogleChrome"  parentID ="Safari3" >
        
< identification >
            
< userAgent  match ="Chrome/(?'version'\d+\.\d+)"   />
        
</ identification >
        
< capabilities >
            
< capability  name ="browser"  value ="Googlebot"   />
        
</ capabilities >
    
</ browser >
</ browsers >

 

 

 

你可能感兴趣的:(ASP.NET中的Menu控件在谷歌浏览器下显示异常的解决办法)