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制作的弹出菜单,鼠标移出后菜单消失,我现在想让鼠标移出后菜单保留。就像伊利公司(www.yili.com)一样。
是不是要改菜单弹出的js或css代码。代码如下:就是不知如何改?
function menuFix()
{var sfEls = doc ......
我现在在学习网站开发,学习的过程中发现CSS是用来设置样式的,而DOM也可以用来设置样式,js库也可以。
这些究竟在什么时候用什么?
请指点!谢谢!
不用js+dom操作css,LZ写个用dom操作css的来看看
DOM只是一 ......
用"服务器控件名.Style.Add("display","")可以给这控件添加CSS,怎么样才能给读出来呢?
怎么都没人帮忙啊
人都死哪去了
控件ID.Style[HtmlTextWriterStyle.BackgroundColor]
控件 ......
我最近看很多大网站的html源代码,大多都是把css内联式,而不是外联式,这样做的目的是什么?求高手指教!谢谢
节省加载时间
在网速慢的时候,网页不至于变形
性能提高
引用
1、http请求是要开销的,想 ......