css IE hack不识别
截取css代码,div里面平行有p span em,在chrome 和FF下已经调整好了,就是在IE下span和em都无法显示,而且显示加IE hack
比如
#d1{ *height:40px;}是根本不起作用的,问大牛
div{ width:200px;height:60px; border:2px solid; border-color:rgb(56,160,221); position:absolute; background-color:#FFF;}
p{font-size:12px; padding:7px;}
em { display:block; width:0; height:0; overflow:hidden; border-top:10px solid #FFF; border-left:10px dotted transparent; border-right:10px dotted transparent; margin-left:21px;}
span { display:block; width:0; height:0; overflow:hidden; border-top:12px solid; border-top-color:rgb(56,160,221); border-left:12px dotted transparent; border-right:12px dotted transparent; margin-left:19px;}
#d1 em { margin-top:-14px;}
#d1 span{ margin-top:-3px;}
#d3{ height:48px; width:160px;}
#d3 em{ margin-top:-13px;}
#d3 span{ margin-top:0px;}
#d8{ height:100px;}
#d8 em{ margin-top:-13px;}
#d8 span{ margin-top:1px;}
#d9{ width:145px; height:50px;}
#d9 em{ margin-top:-13px;}
#d9 span{ margin-top:2px;}
#d15{ width:160px; height:65px;}
#d15 em{ margin-top:-14px;}
#d15 span{ margin-top:0px;}
#d17{ width:200px; height:95px;}
#d17 em{ margin-top:-14px;}
#d17 span{ margin-top:-2px;}
#d18{ width:180px; height:80px;}
#d18 em{ margin-top:-13px;}
#d18 span{ margin-top:-2px;}
@media screen and (-webkit-min-device
相关问答:
对CSS能看懂,但一些属性还是不能够完全理解。
自己只会写些常用的CSS。还没达到创造和创新的地步。
所以想问下各位前辈,应该看那本书较好呢?
建议不买书网上找教程自学,这个东西不是很难,多练习就会了
......
我现在在学习网站开发,学习的过程中发现CSS是用来设置样式的,而DOM也可以用来设置样式,js库也可以。
这些究竟在什么时候用什么?
请指点!谢谢!
不用js+dom操作css,LZ写个用dom操作css的来看看
DOM只是一 ......
我用CSS控制的网页页面颜色,在设计的时候都有颜色,怎么在运行的时候没有显示啊?求求大家说说咯
你的代码呢?
body
{
background-color:#C0C9FF;
}
直接这样写的咯,然后引用到控制的网页里面咯 ......
setSampleList : function(dataList){
var newslist = document.getElementById("newslist");
var basePath = document.getElementById("basePath").value ......
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......