让我陷入了困境。我创建了一个php表,该表由sql数据以及一个日历连接到php中。我想1)在我的主页上显示这两个项目,但是我很难将它们居中并排,而无需左右滚动。修正2)将它们放在背景上,因为当前它们位于它。 我不确定如何将这两项添加到我的页面或需要将它们放置在什么地方,因为在我的背景div之外,它们没有位于其上方。
<html lang="en">
<head>
<head>
<div class="header">
<link rel="stylesheet"
href="headerCSS.css">
<a
href="-----"
class="logo"><img src="topleftlogo.svg">
</a>
<div class="header-right">
<a class="active" href="#home"><img
src="menulogo.jpg" height ="40"
width="60"
</a>
<a href="#Reservation"><img
src="reservationlogo.jpg" height="40"
width
="60"</a>
<a href="#Servers"><img
src="serverslogo.jpg" height="40"
width="60"></a>
</div>
</div>
<center>
<div class="centerlogo"> <img src="----
-.png" height="100" width="300" >
</div>
</center>
<ul class="nav global">
</ul>
</ul>
<div class="repeat-x">
<div class="calendar">
<?php include 'reserve1/calendar3.php';?>
</div>
<div class="ServerTable">
<?php include 'reservation/tjr22.php'; ?>
</div>
</div>