小编Sha*_*ane的帖子

CSS Sticky标题

我在我的主页上添加了一个粘性标题,但是粘性标题似乎位于页面上其他内容的后面,因此当我向下滚动页面时,图像和文本位于标题的顶部,是否有办法停止这个?

这是我的代码:

<style>
/* Reset body padding and margins */
body
{
    margin: 0;
    padding: 0;
}

/* Make Header Sticky */
#header_container
{
    background: #827878;
    border: 1px solid #666;
    height: 60px;
    left: 0;
    position: fixed;
    width: 100%;
    top: 0;
}

#header
{
    line-height: 60px;
    margin: 10 auto;
    width: 940px;
    text-align: left;
    font-size: 26px;
    color: #f5f5f5;
    line-height: 28px;
    margin-bottom: 14px;
    font-family: 'Source Sans Pro',sans-serif;
}

/* CSS for the content of page. I am giving top and bottom 
   padding of …
Run Code Online (Sandbox Code Playgroud)

html css header sticky

5
推荐指数
1
解决办法
2万
查看次数

使用MySQL从表中删除整行

我正在尝试编写一行在MySQL中删除.

我不知道如何做到这一点,所以从另一个网站选择了一些编码:

句法:

<?php
$personID=$_GET["q"];
if ($personID<="0"){echo( "<center><h3><a href=\"#\" onclick=\"window.close(); return false\">NO ID ERROR CLICK THIS TO RETRY CLOSE WINDOW</a></h3></center>"); 
 }
 else
 {
 $con = mysql_connect("mysql.XXX.com","XXX","XXX");

if (!$con) 
  {
   die('Could not connect: ' . mysql_error());
   }
  $myid=$_COOKIE["user"];

@mysql_select_db("u716720408_admin", $con)or die( "Unable to select database");
$result=mysql_query("DELETE * FROM users WHERE personID=$personID")or die(mysql_error());  

$cnt=1;

$row = mysql_fetch_array( $result );

$f1=$row['personID'];
$f2=$row['personFname'];
$f9=$row['llmail'];
$f14=$row['personSname'];
$f19=$row['password']; 

?>
Run Code Online (Sandbox Code Playgroud)

mysql

1
推荐指数
1
解决办法
6198
查看次数

标签 统计

css ×1

header ×1

html ×1

mysql ×1

sticky ×1