200大洋奉上。求助css高手。只要帮忙稍微改下代码就行

来源:百度知道 编辑:UC知道 时间:2024/06/19 17:55:59
<body runat="server" id="caidan">
<span class="preload1"></span>
<span class="preload2"></span>

<ul class="menu2">
<!--[if lte IE 6]><table><tr><td></a><![endif]-->
<li class="top"><a id="ss" class="top_link"><span class="down">基本信息</span><!--[if gte IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td></a><![endif]-->

<ul class="sub">
<li><asp:HyperLink ID="tjgsxx" runat="server" Enabled="true" NavigateUrl="Bedrock/Company_add.aspx" Target="main">添加公司信息</asp:HyperLink></li>
<li><asp:HyperLink ID="tjspxx" runat="server" Enabled="true"

如果是让IE 6和7都正常显示的话,就不要加版本号了,用if ite IE就可以了。
下面是详细用法区分:

<!--[if lte IE 6]>
请使用非<strong>IE</strong>浏览器浏览本页,推荐使用<strong>FireFox</strong>浏览器。
<![endif]-->
<!--[if !IE]><!-->

下面一段代码是测试在微软的IE浏览器下的条件注释语句的效果 <!--[if IE]>
<h1>您正在使用IE浏览器</h1>
<![endif]-->
<!--[if IE 5]>
<h1>版本 5</h1>
<![endif]-->
<!--[if IE 5.0]>
<h1>版本 5.0</h1>
<![endif]-->
<!--[if IE 5.5]>
<h1>版本 5.5</h1>
<![endif]-->
<!--[if IE 6]>
<h1>版本 6</h1>
<![endif]-->
<!--[if IE 7]>
<h1>版本 7</h1>
<![endif]-->

下面的代码是在非IE浏览器下运行的条件注释 <!--[if !IE]><!-->
<h1>您使用不是 Internet Explorer</h1>
<!--<![endif]-->
最终在非IE和特殊的IE浏览器下起作用
(或者使用 lte lt 或者 gt gte来判断,如: