主题导航栏固定位置

{Graygift} 2009年07月20日 星期一11:52 上午. 点击量:35 次

今天使用css中的 position:fixed 把header固定在了网页上头,不过万恶的IE6让人郁闷死,这个浏览器不支持 position:fixed ,所以又要找方法把这个问题解决了。什么方法呢,其实我也不是很懂!只是在 /head 之前加了一段css代码:

?Download download.txt
1
2
3
4
5
6
7
8
9
10
11
12
<head>
 
< ! -–[if !IE 6]> 
<style type="text/css">
#head_top{
	position:fixed;
}
</style>
< ![endif]–>
 
<pre>
<p> 注:我网页头部iv的id是head——top </p><p>这样就好了!</p>

没有评论 , 快去抢沙发 !

对《主题导航栏固定位置》评论

XHTML:您可以使用这些标签:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:| :x :twisted: :roll: :oops: :o :mrgreen: :lol: :idea: :evil: :cry: :arrow: :P :D :?: :? :) :( :!: 8O 8)