简易版网上订餐,包括从后台添加菜品图片,菜品,价格
HTML代码
~~~
.box {
width: 600px;
height: 400px;
border: 2px solid black;
margin: 50px auto;
text-align: center;
position: relative;
}
.myPhp{
height: 140px;
margin-top: 150px;
width: 800px;
}
#order, #show {
text-align: left;
}
#show {
border: 2px solid black;
width: 600px;
margin-top: 150px;
}
#show div, form div {
height: 50px;
}
#show div span:nth-of-type(1), form div span:nth-of-type(1), #show div span:nth-of-type(2), form div span:nth-of-type(2) {
display: inline-block;
width: 140px;
}
img {
width: 40px;
vertical-align: middle;
margin: 0 8px;
}
#btn1, #btn2 {
width: 50px;
font-size: 16px;
background: #F5F5F5;
}
#btn2 {
margin-left: 8pxs;
}
#btn1 {
position: absolute;
bottom: 10px;
right: 20px;
}
丽德国际大酒店
添加菜单
图片:
菜品:
价格:元
PHP代码1 往后台上传图片,添加菜品和价格
~
PHP代码2 从后台去数据
~