English 中文(简体)
j Query/PHP, for high communication bars thatzan all page contentdown
原标题:jQuery/PHP for top notification bars that push all page content down

申斥: 因此,我知道,在上页顶部躲藏了一块小 w/大 j,并给它增加了一个活动手,从而很容易作出最高级的通知。

Dilemma: 我需要把通知栏列入一页,该页的图像是给本机构的。 a 推倒了所有内容,推倒了整个现场。 我试图避免把全部内容混为一谈,把 b子 over倒到那四处,因为害怕抛弃其他儿童的风格。

如果任何人都知道将一页内容(包括内容)推倒的方法,我将非常赞赏任何智慧。

最佳回答

您可使用关于身体要素的<代码>margin-top和background-position的组合,以抵消背景形象。

$( #note ).show(); // absolute positioned at top of page
$( body ).css({marginTop:  50px , backgroundPosition:  0 50px });
问题回答

You might try prepending the div to the top of your content using jQuerys .prependTo() . This way the new div element will naturally be before everything, and then you can also style the element easily. This should allow your background to remain in the same position as well.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签