不知道能否实现(CSS中引用JS的变量)
请教一个问题,不知道能否实现,自己感觉都有点变态
我现在有一个CSS文件(一个进度条文件)如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS进度条 </title>
</meta>
<style>
.star-rating{
list-style:none;
margin: 0px;
padding:0px;
width: 210px;
height: 30px;
position: relative;
background: url(../../images/star_rating2.gif) top left repeat-x;
}
.star-rating li{
padding:0px;
margin:0px;
/*\*/
float: left;
/* */
}
.star-rating li a{
display:block;
width:30px;
height: 30px;
text-decoration: none;
text-indent: -9000px;
z-index: 20;
position: absolute;
padding: 0px;
}
.star-rating li a:hover{
background: url(../../images/star_rating2.gif) left center;
z-index: 2;
left: 0px;
}
.star-rating a.one-star{
left: 0px;
}
.star-rating a.one-star:hover{
width:30px;
}
.star-rating a.two-stars{
left:30px;
}
.star-rating a.two-stars:hover{
wid
相关问答:
CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......
我的样式表写的是:
body{
margin-left: 15%;
margin-right: 15%;
......
如题!! 最好能够多浏览器支持!!!
CSS code:
<style type="text/css">
<!--
.fixTop {
Z-Index:102;
position:relative;
Top:expression(this.offsetPare ......
刚才在别处看到一个关于js+css来控制网页显示的问题,如何写自动判断是百度蜘蛛还是人浏览呢
就是百度蜘蛛访问的是一个页面,而人看到的是另一个页面
希望高手帮助
不会,帮你顶一下
不懂,有待学习!
唉~~ ......
position:relative不是相对定位吗~~为什么用了边偏移定位后有些人就说是变成了绝对定位了……~~而且它与margin来确定位置有什么不同~~
边偏移定位后有些人就说是变成了绝对定位了
re:
谁说的!真是不象话!positi ......