Jquery移动网格在背景图像?

时间:2016-02-18 17:03:37

标签: css jquery-mobile

我正在使用jquery mobile开发移动应用程序,并使用import java.util.ArrayList; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; class Account { private int balance = 0; Account(int bal){ this.balance =bal; } public int getBal() { return balance; } public synchronized void withdraw(int bal){ balance = balance - bal; } public synchronized void deposit(int bal){ balance = balance + bal; } } public class TransactionManagerNaiveSync implements Runnable { Account account; public TransactionManagerNaiveSync(Account a){ this.account = a; } public static void main(String[] args) { long start = System.currentTimeMillis(); Account a1 = new Account(500); TransactionManagerNaiveSync t1 = new TransactionManagerNaiveSync(a1); List<Thread> thread = new ArrayList<Thread>(); for(int i=0;i < 300;i++) thread.add(new Thread(t1)); for(int i=0;i < 300;i++) thread.get(i).start(); for(int i=0;i < 300;i++){ try { thread.get(i).join(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } long end = System.currentTimeMillis(); System.out.println(" Account Balance in the end : "+ a1.getBal()); System.out.println(" Time Taken : "+(end - start)); } @Override public void run() { //for(int i=0;i < 100;i++) //{ account.deposit(10); System.out.println(""+Thread.currentThread().getId()+" Account Balance after deposit : "+account.getBal()); try { Thread.sleep(100); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } account.withdraw(10); System.out.println(""+Thread.currentThread().getId()+" Account Balance after withdrawal : "+account.getBal()); //} } } 标记将背景图像放置在覆盖整个内容的主div的内容中。我正在尝试将jquery移动网格放在背景图像上,但网格总是直接显示在图像下方。有没有办法将网格放在图像上,图像被发送到后面,网格被放到前面?

1 个答案:

答案 0 :(得分:0)

如果您想用背景图片覆盖整个内容,请尝试以下方式:

.ui-grid-c {
    background : url(../pathTo/yourImage.jpg) !important;
}