关于UL和LI的css问题
<html>
<head>
<style type="text/css">
.nav{ width:980px; height:32px; margin:0 auto; position: relative;z-index: 100; }
.nav ul{ padding-left:10px; }
.nav ul ul{ padding-left:0px; border:1px solid #CCC; }
.nav li { float: left;position: relative;}
.nav ul ul { visibility: hidden;position: absolute;left: 0px;top: 32px;list-style-type: none}
.nav table {position: absolute;top: 0;left: 0;}
.nav ul li:hover ul,
.nav ul a:hover ul{visibility: visible;}
.nav a{display: block; width:90px; height:32px; line-height:32px; text-align:center;
color: #003366;text-decoration: none; font-weight:bold;}
.nav a:hover{ color: #990000; text-decoration:none; }
.nav ul ul li {clear:both;text-align:left; font-size:12px; }
.nav ul ul li a{display: block; width:100px;height:22px; line-height:22px;font-weight:normal;
text-align:left; padding-left:10px; background-color:#F9F9F9;border:2px solid #F9F9F9; }
.nav ul ul li a:hover{ border:2px solid #F9F9F9; background: #003366; color:#EEE; }
}
</style>
</head>
<body>
<div class="nav">
<ul>
<li>
<a href="javascript::void(0)">案例管理 <!--[if IE 7]>
相关问答:
下面是不带图片的圆角CSS box,看下面演示效果吧:
http://www.abaonet.com/jsCode/page/200911/2310.html
不错~~~~顶~~~~就是代码有点多!接分!!!
有创意,不过边角的点状有锯齿,没有图片好看,呵呵
......
用"服务器控件名.Style.Add("display","")可以给这控件添加CSS,怎么样才能给读出来呢?
怎么都没人帮忙啊
人都死哪去了
控件ID.Style[HtmlTextWriterStyle.BackgroundColor]
控件 ......
我的样式表写的是:
body{
margin-left: 15%;
margin-right: 15%;
......
我最近看很多大网站的html源代码,大多都是把css内联式,而不是外联式,这样做的目的是什么?求高手指教!谢谢
节省加载时间
在网速慢的时候,网页不至于变形
性能提高
引用
1、http请求是要开销的,想 ......