.NET在IE6情况下调用不到页面的两个样式,其他浏览器没事,求解,代码粘贴出来

酒灞 2012-04-12 06:05:23
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<%@ Register TagPrefix="UserControl" TagName="login" Src="~/include/login.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>易佳养生网首页</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/home.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* common styling */ /* set up the overall width of the menu div, the font and the margins */ .menu
{
width: 940px;
margin: 0;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
.menu ul
{
padding: 0;
margin: 0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
.menu ul li
{
float: left;
position: relative;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
.menu ul li a, .menu ul li a:visited
{
display: block;
text-align: center;
text-decoration: none;
width: 94px;
height: 43px;
margin-right: 35px;
color: #fff;
line-height: 43px;
font-size: 16px;
font-weight: bold;
}
/* make the dropdown ul invisible */
.menu ul li ul
{
display: none;
}
/* specific to non IE browsers */
/* set the background and foreground color of the main menu li on hover */
.menu ul li:hover a
{
color: #000;
background: url(images/nava.jpg) no-repeat;
}
/* make the sub menu ul visible and position it beneath the main menu list item */
.menu ul li:hover ul
{
display: block;
position: absolute;
top: 35px;
left: 0;
width: 94px;
}
/* style the background and foreground color of the submenu links */
.menu ul li:hover ul li a
{
display: block;
background: #fff;
color: #000;
}
/* style the background and forground colors of the links on hover */
.menu ul li:hover ul li a:hover
{
color: red;
}
.liheight
{
height: 28px;
}
</style>
<!--[if lte IE 6]>
<style type="text/css">
/* styling specific to Internet Explorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */
/* Get rid of any default table style */
table {
border-collapse:collapse;
margin:0;
padding:0;
}
/* ignore the link used by 'other browsers' */
.menu ul li a.hide, .menu ul li a:visited.hide {
display:none;
}
/* set the background and foreground color of the main menu link on hover */
.menu ul li a:hover {
color:#000;
background: url(images/nava.jpg) no-repeat;
}
/* make the sub menu ul visible and position it beneath the main menu list item */
.menu ul li a:hover ul {
display:block;
position:absolute;
top:35px;
left:0;
width:94px;
}
/* style the background and foreground color of the submenu links */
.menu ul li a:hover ul li a {
background:#fff;
color:#000;
}
/* style the background and forground colors of the links on hover */
.menu ul li a:hover ul li a:hover {
color:red;
}
</style>
<![endif]-->
<script src="js/switch.js" type="text/javascript"></script>
</head>

<body>

home.css
@charset "utf-8";
/* CSS Document */

#header{ width:950px; margin:0 auto;}...

base.css
/* CSS Document */

body,img,ul,li,h1,h2,h3,h4,h5,h6,from,dl,dd,p,input,table,tr,td {
margin:0;
padding:0;
}...

...全文
106 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
a2325145 2012-04-12
  • 打赏
  • 举报
回复
又是浏览器的兼容问题,很麻烦。干脆不要再IE6上调试了,反正也没有人用了。保证在其他的版本运行就可以了
蝶恋花雨 2012-04-12
  • 打赏
  • 举报
回复
首先清除一下缓存。然后再确定一下css路径是否正确。
然后试试可以不。
内容概要:本文围绕基于一致性理论的无人船与自主水下航行器(AUV)多智能体编队控制展开研究,旨在实现多个海洋无人平台在复杂海洋环境下的协同编队运动。研究利用图论和拉普拉斯矩阵建立多智能体系统的通信拓扑结构,通过设计分布式一致性控制协议,使各智能体在仅依赖局部邻居信息交换的情况下,实现对期望编队队形的稳定保持。文章详细阐述了编队控制系统的数学模型、一致性算法设计(包括一阶与二阶动力学系统)及其稳定性分析,并利用Matlab/Simulink工具对编队形成、队形保持、队形变换以及编队避障等多种场景进行了仿真验证,证明了所提方法的有效性和鲁棒性。; 适合人群:具备自动控制、机器人学、海洋工程等相关专业背景,掌握Matlab/Simulink仿真技能,从事多智能体系统、无人系统控制或协同导航研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①为无人船与AUV协同执行海洋勘探、环境监测、搜救等任务提供可靠的编队控制算法;②作为研究分布式协同控制理论在复杂动力学系统中应用的仿真案例;③为开发实际的无人系统编队控制软件模块提供理论基础和代码参考。; 阅读建议:学习者应在理解一致性理论和图论基本概念的基础上,结合文中提供的Matlab代码进行仿真复现与参数调试,重点关注通信拓扑、控制增益等参数对编队性能的影响,从而深入掌握多智能体协同控制的核心设计思想。
内容概要:本文系统阐述了基于遗传算法的模糊PID控制器参数整定方法,通过融合遗传算法的全局寻优能力与模糊控制的动态调节优势,实现对PID控制器比例系数(Kp)、积分时间(Ti)和微分时间(Td)的智能化优化。该方法针对非线性、模型不确定或难以精确建模的复杂控制系统,设计合理的适应度函数以平衡跟踪误差与控制能耗,并借助模糊规则在线调整控制参数,显著提升系统的响应速度、稳定性、鲁棒性及控制精度。文中配套提供了完整的Matlab代码实现方案,并通过单位阶跃响应仿真验证了该方法在减小超调、加快收敛和抑制振荡方面的优越性能。; 适合人群:具备自动控制理论基础和Matlab编程能力,从事控制工程、自动化、机器人、智能制造及相关领域的科研人员、研究生及工程技术人员。; 使用场景及目标:①应用于工业过程控制、智能机器人、无人船/无人机、伺服系统等复杂动态系统的控制器设计;②解决传统PID参数依赖人工整定、适应性差的问题,实现自适应、智能化的参数优化;③作为先进控制算法的教学与科研案例,深入理解遗传算法与模糊控制的协同机制及其在工程实践中的集成应用。; 阅读建议:学习者应结合Matlab代码进行仿真实验,重点掌握适应度函数构造、遗传算法参数配置(如种群规模、交叉与变异概率)以及模糊规则库设计等核心技术环节,并可通过更换被控对象模型或调整优化目标进一步拓展应用场景与研究深度。

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧