我出于某种原因无法使用jQuery更改元素的zIndex.我搜索了所有这个网站和谷歌,但找不到正确的答案.我试图在点击按钮时将我的元素放在另一个div的前面.我使用了你可以在这里看到的代码.但没有奏效.
$(this).parent().css('zIndex',3000);
Run Code Online (Sandbox Code Playgroud)
它在开头的元素的CSS代码:
#wall{
width:100%;
height:700px;
position: absolute;
top:500px;
background: #11c1e7;
opacity: 0.6;
z-index: 900;
}
Run Code Online (Sandbox Code Playgroud)
要超出此范围的元素的CSS代码:
.port1 {
width:200px;
height:200px;
left:<?php echo rand(1,1000); ?>px;
top:-500px;
border-radius: 500px;
background:red;
position:absolute;
z-index: 10;
}
Run Code Online (Sandbox Code Playgroud)
有谁知道我怎么解决这个问题?
//编辑
链接到该网站:http: //dannypostma.com/project/j.php
点击投资组合球时,两个球从空中掉落.点击时这些应该在水面前.
我已经尝试了一切,但没有任何作用..即使在我写的其他代码中,它也有效.但由于某种原因,它现在不会.
我想加入ID = userID的两个表.当我加载页面时,我收到此错误:
警告:mysql_fetch_array():提供的参数不是第17行的/home/ynxwleus/domains/mustseenmovies.nl/public_html/films/userinfo.php中的有效MySQL结果资源
有没有人可以帮我解决这个问题?
码:
$userID = $_SESSION['s_userID'];
echo $userID;
$query = "SELECT userID, userName, userFrontname, userSurname, filmID
FROM users
JOIN seenIt
ON users.userID = seenIt.userID
WHERE (userID ='$userID')";
$res = mysql_query($query);
while ($row = mysql_fetch_array($res)) {
echo $row['userName'];
echo $row['userFrontname'];
echo $row['userSurname'];
echo $row['filmID'];
}
Run Code Online (Sandbox Code Playgroud)
提前致谢!