0
我想将页面横向分为两部分。在上半部分,我想要一个形式,在下半部分我想要一个图像。但它不起作用。请帮帮我。将页面分为两部分
<!DOCTYPE html>
<html>
<head>
<title>JN DIAMONDS</title>
</head>
<style>
#upper {
height:50%;
}
#lower {
height: 50%;
background-image: r1.jpg;
}
</style>
<body>
<div id="upper">
<form align="center" method="POST" action="insert_rough.php">
<fieldset>
<legend>JN Patel <b>Rough Diamond</b> Information</legend>
<br>
<input type="text" name="fname" placeholder="Name" required><br><br>
<input type="text" name="twait" placeholder="Total Rough Weight"><br><br>
<input type="text" name="cprice" placeholder="1 Carat Price"><br><br>
<input type="text" name="dprice" placeholder="Dollar Rate"><br><br>
<input type="text" name="date" placeholder="Payment Days" required><br><br>
<input type="image" src="submit.jpg" alt="Submit" width="90" height="35"><br>
</fieldset>
</div>
<body>
<div id="lower"></div>
</body>
</form>
</body>
</html>
我编辑了您的文章以使其可以被人类阅读(这就是您将在这里找到的主要内容)。我很确定把一个'body'标签嵌入另一个标签是一个坏主意。 – sodawillow
我没有得到backgrund img..will你请帮助 – John
这两个身体标签?为什么? –