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

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

 ExpandedBlockStart.gif



< 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 >

 

 

 

转载于:https://www.cnblogs.com/EasyData/archive/2010/06/16/1759060.html

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