ASP.net Menu控件在Google Chrome和Safari浏览器下显示错位的解决办法
程序员文章站
2024-03-11 17:11:01
复制代码 代码如下:
<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>
复制代码 代码如下:
<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>