#bgImage{
background-image:url("/MedicineAlert/res/drawable-hdpi/bgimage.png");
background-size: 100% 100%;
background-repeat:no-repeat;
background-position:100% 100%;
top: 0px;
left: 0px;
}
.formButton{
font-family: Verdana, Geneva, sans-serif;
font-size: 24px;
color: #FFF;
padding: 5px 10px 5px 10px;
border: solid 1px #CCC;
background: #ba4742;
text-shadow: 0px 1px 0px #000;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
box-shadow: 0 1px 3px #111;
-moz-box-shadow: 3px 3px 1px #999;
-webkit-box-shadow: 3px 3px 1px #999;
cursor: pointer;
}
.formButton:hover {
background: #a33f3a;
}
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Alert Time</title>
<link rel="stylesheet" href="register.css" type="text/css" media="screen" title="no title">
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8" src="register.js"></script>
</head>
<body id="bgImage">
<hearder>
<h1>Please fill out the form and submit</h1>
</header>
<div>
<form action="" method="post">
<header>
<h1>
Your information Please!
</h1>
</header>
<div>
<form id="form_info" action="" method="post">
Fist Name <input type="text" name="fname" required="required" /><br />
Middle Name <input type="text" name="mname" /><br />
Last name <input type="text" name="lname" required="required" /><br />
Date of birth <input type="text" name="dOfBirth" required="required"/><br />
Social security Number <input type="text" name="sNumber" /><br />
Gender <label for="male">Male</label>
<input type="radio" name="sex" id="male" />
<label for="female">Female</label>
<input type="radio" name="sex" id="female" />
</div><br />
<input type="submit" name="submitButton" value="Submit" class="formButton" />
</form>
</div>
</body>
</html>
我很难访问我的 drawable-hdpi 文件夹中的图像。首先,我在 assets 文件夹中创建了一个名为 image 的文件夹,然后我尝试使用 css 引用 assets 目录中 image 文件夹中的图像,但它不起作用。我决定将可绘制对象用于我的资源,但我仍然遇到同样的问题。有什么帮助吗?