jquery mobile을 사용하고 있습니다. CSS body {} 태그 안에 인덱스 페이지에 배경 이미지를 정의했습니다. 백 그라운드는 잘 돌아오고 있지만 다음 페이지에서 본문 CSS 부분을 선언하지는 않았지만 다른 페이지에서도 자동으로로드됩니다. 어떻게 방지 할 수 있습니까? css body {background : url()}은 인덱스 페이지에서만 작동합니다. 여기각 페이지의 배경 이미지로드 방지 방법?
<style type="text/css">
body {
background: url(images/login2.png);
background-repeat:repeat-y;
background-position:center;
background-attachment:scroll;
background-size:100% 100% ;
}
.ui-page {
background: transparent;
}
.ui-content{
background: transparent;
}
</style>
</head>
<body>
<div align="center" data-role="fieldcontain" id="contentConfirmation" name="contentConfirmation">
<div >
<label class="userlabelclass" for="url" style="float:left" ><p>Username:</p></label>
<input class="userfieldclass" id="Lusername" name="uid_r" type="text" value="John Doe" " style="width:230px;float:right">
</div>
<div >
<label class="pswdlebelclass" for="url" style="float:left"><p>Password:</p></label>
<input class="pswdfieldclass" id="Lpassword" name="pwd_r" type="password" value="123456789" style="width:230px;float:right">
<label class="forgotclass" for="url" style="float:left"><p>Forgot Password?</p></label>
</div>
<div align="center">
<a href="listview_page.html" data-role="button" data-inline="true" data-theme="e" class="buttonclass" >Log In</a>
</div>
</div>
</body>
우리가 분명히 할 수있는 것은 : 한 페이지에만 배경 이미지를 표시하고 모든 페이지에 표시하고 싶습니까? – Jackson
예. 바로 그 일이 일어나고 있습니다. – Fabre