css下拉菜单又看不明白了..
网上看到的css做的下拉菜单,为什么去掉了 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >就不能用呢?
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
<head>
<style type="text/css">
body {font-size:1%; color:#fff;} /*get rid of the IE bug that prints the the end of the !doctype */
.menu {display:none;}
.holder {color:#000; width:90px; height:18px; display:block; background:#dca; border:1px solid #000; margin-right:1px; text-align:left; float:left; text-decoration:none; font-family:tahoma, vardana, arial, sans-serif; font-size:10px; line-height:18px; overflow:hidden;}
.holder:hover {height:auto; cursor:pointer;color:#fff; background:#000;}
a.inner, a.inner:visited {display:block; width:89px; height:18px; border-bottom:1px solid #000; text-decoration:none; color:#000; background:#eee;}
a.inner:hover {background:#add;}
p { color:#000; font-size:16px;}
</style>
<!--[if IE]>
<style type="text/css">
/*<![CDATA[*/
.holder {display:none;}
.menu {display:block;}
a.outer, a.outer:visited {color:#000; width:90px; height:18px; display:block; background:#dca; border:1px solid #000; margin-right:1px; text-align:center; float:left; text-dec
相关问答:
对CSS能看懂,但一些属性还是不能够完全理解。
自己只会写些常用的CSS。还没达到创造和创新的地步。
所以想问下各位前辈,应该看那本书较好呢?
建议不买书网上找教程自学,这个东西不是很难,多练习就会了
......
我最近看很多大网站的html源代码,大多都是把css内联式,而不是外联式,这样做的目的是什么?求高手指教!谢谢
节省加载时间
在网速慢的时候,网页不至于变形
性能提高
引用
1、http请求是要开销的,想 ......
想要实现点击子菜单后更改主菜单内容, 在ie6下更改完主菜单后, hover没有响应,请问问题出在哪里?
<head>
<meta http-equiv="Content-Type" content="text/html; charse ......
如题!! 最好能够多浏览器支持!!!
CSS code:
<style type="text/css">
<!--
.fixTop {
Z-Index:102;
position:relative;
Top:expression(this.offsetPare ......
刚才在别处看到一个关于js+css来控制网页显示的问题,如何写自动判断是百度蜘蛛还是人浏览呢
就是百度蜘蛛访问的是一个页面,而人看到的是另一个页面
希望高手帮助
不会,帮你顶一下
不懂,有待学习!
唉~~ ......