CSS之工作黏贴
/* Cascading Style Sheet for IE4.01 last updated 10-16-97 */
DIV {COLOR: #333333; FONT-FAMILY: "宋体", "Arial", "Tahoma"; FONT-SIZE: 9pt}
P {COLOR: #333333; FONT-FAMILY: "宋体", "Arial", "Tahoma"; FONT-SIZE: 9pt}
TD {COLOR: #333333; FONT-FAMILY: "宋体", "Arial", "Tahoma"; FONT-SIZE: 9pt}
BODY {COLOR: #333333; FONT-FAMILY: "宋体", "Arial", "Tahoma"; FONT-SIZE: 9pt}
A {font-family: "宋体"; font-size: 9pt; color: #333333; text-decoration: none}
A:Link {font-family: "宋体"; font-size: 9pt; color: #333333; text-decoration: underline}
A:Hover{font-family: "宋体"; font-size: 9pt; color: #3399CC; text-decoration: none}
A:Visited {font-family: "宋体"; font-size: 9pt; color: #663333; text-decoration: underline}
.lefty div {font-family: "宋体"; font-size: 9pt; color: #996633; text-decoration: none }
.lefty td {font-family: "宋体"; font-size: 9pt; color: #996633; text-decoration: none }
.lefty A {font-family: "宋体"; font-size: 9pt; color: #CC9933; text-decoration: none}
.lefty A:Link {font-family: "宋体"; font-size: 9pt; color: #CC9933; text-decoration: none}
.lefty A:Hover{font-family: "宋体"; font-size: 9pt; color: #996633; text-decoration: none}
.lefty A:Visited {font-family: "宋体"; font-size: 9pt; color: #CC9933; text-decoration: none}
.leftb div {font-family: "宋体"; font-size: 9pt; color: #006699; text-decoration: none }
.leftb td {font-family: "宋体"; font-size: 9pt; color: #006699; text-decoration: none }
.leftb A {font-family: "宋体"; font-size: 9pt; color: #006699; text-decoration: none}
.leftb A:Link {font-family: "宋体"; font-size: 9pt; color: #006699; text-decoration: none}
.leftb A:Hover{font-family: "宋体"; font-size: 9pt; color: #000000; text-decoration: none}
.leftb A:Visited {font-family: "宋体"; font-size: 9pt; color: #006699; text-decoration: none}
.menu div {font-family: "宋体"; font-size: 9pt; color: #3399CC; text-decoration: none }
.menu td {font-family: "宋体"; font-size: 9pt; color: #3399CC; text-decoration: none }
相关文档:
IE6下默认的字体尺寸大致在 12 – 14px 之间,当你试图定义一个高度小于这个默认值的 div 的时候, IE 会固执的认为这个层的高度不应该小于字体的行高。所以即使你用 height:4px; 来定义了一个 div 的高度,实际在 IE 下显示的仍然是一个 12 px 左右高度的层。添加overflow: hidden解决问题。
<div style=&rdquo ......
-----------------------------------------------
链接外面文件css
<link href="layout.css" rel="stylesheet" type="text/css" />
-----------------------------------------------
写文本 : <div id="mainContent">
<p>1列固定宽度居中+头部+导航+尾部—&mdash ......
ninjacontent组件在我的网站上显示不正常,想修改它的CSS使其正常,可是怎么也找不到它的CSS的位置,现在终于找到了,特把它记录下来,以备有遇到跟我一样问题的人查看。
CSS位置:网站根目录\media\com_ninjacontent\css\目录下。 ......
When you meet trouble with css style in IE7, try this. You can set different css for IE7 and the other browsers.
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="/home_c_ie7.css" mce_href="home_c_ie7.css" />
<![endif]-->
......
原理:
当两个同父元素z-index相同时,后面的元素显示在上面。
当z-index超过浏览器最大值时,浏览器会按最大值计算。
方法:
连续放置两个div元素d1,d2;并设定position:absolute及不同背景色。
设定d1.z-index = max + 1, d2.z-index = max;
当max + 1有效时,d1在前;当max + 1 无效时,d2在前。(参看原理) ......