CSS 浏览器兼容
2024-09-08 06:30:50
1. 兼容 IF
<!--[if lte IE 7]>
<style type="text/css">
.menu
{
position:relative;
z-index:999;
}
</style>
<![endif]-->
<!--[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:#fff;
background:#b3ab79;
}
/* 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:32px;
left:0;
width:105px;
}
/* style the background and foreground color of the submenu links */
.menu ul li a:hover ul li a {
background:#faeec7;
color:#000;
}
/* style the background and forground colors of the links on hover */
.menu ul li a:hover ul li a:hover {
background:#dfc184;
color:#000;
}
</style>
<![endif]-->
IF
最新文章
- JavaScript POST 请求如何跨域
- mysql查找重复
- CV牛人牛事简介之一
- bootm命令中地址参数,内核加载地址以及内核入口地址
- sql点滴42—mysql中的数据结构
- Vuex核心知识(2.0)
- python结合shell脚本实现简单的日常集中巡检
- 开发过程中,ps要做的事情
- 2015-10-27 C#3
- Oracl数据库+PL/SQL安装与配置
- 【hdu 6172】Array Challenge(数列、找规律)
- 2、Kafka架构
- rocketmq自启动配置
- MySQL存储引擎MyISAM与InnoDB区别总结整理
- javascript(面向对象,作用域,闭包,设计模式等)
- a标签自执行点击事件
- CentOS7 安装 GitLab
- mysql分组GROUP BY常用sql
- WTS 2.1.18124.1 彻底抛弃了 15063(Win 10 创意者更新)
- 【转】软件质量之道:SourceMonitor
热门文章
- uboot之run_command简单分析
- 计算机器内存数量+引入和显示ARDS成员
- EF获取DbContext中已注册的所有实体类型
- 新装上线 年度精品 XP,32/64位Win7,32/64位Win10系统【电脑城版】
- SRM 626 D1L1: FixedDiceGameDiv1,贝叶斯公式,dp
- iOS开发 僵尸调试
- SPOJ SUBLEX - Lexicographical Substring Search 后缀自动机 / 后缀数组
- 【BZOJ4942】[Noi2017]整数 线段树+DFS(卡过)
- html学习笔记(1)--处理特殊字符以及其他的一些小细节
- 连通性 保证f具有介值性质