feat: make character small
This commit is contained in:
parent
c73892102c
commit
d9e14d0352
25
game.html
25
game.html
@ -6,18 +6,24 @@
|
||||
<title>秦始皇餐厅</title>
|
||||
<style>
|
||||
body {
|
||||
background-image: url('src/pic/desktop.png'); /* 替换为您的餐厅背景图片路径 */
|
||||
background-image: url('src/pic/desktop.png');
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#restaurant .character {
|
||||
position: absolute;
|
||||
width: 128px; /* 固定图片的宽度 */
|
||||
transform:scale(0.5);
|
||||
#desktop{
|
||||
background-image: url('src/pic/background.png');
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#restaurant .dish {
|
||||
#restaurant .character img {
|
||||
position: absolute;
|
||||
width: 128px; /* 固定图片的宽度 */
|
||||
transform:scale(0.3);
|
||||
top: 0px;
|
||||
width: 1024px;
|
||||
height: 1024px;
|
||||
}
|
||||
#restaurant .dish img {
|
||||
position: absolute;
|
||||
left: 1000px;
|
||||
width: 512px;
|
||||
height: 512px;
|
||||
}
|
||||
/* 根据图片实际位置调整left和top值 */
|
||||
#customer1 { /* 中年男 */
|
||||
@ -46,6 +52,9 @@
|
||||
<body>
|
||||
<!-- 游戏的界面元素 -->
|
||||
<div id="restaurant">
|
||||
<div id="desktop">
|
||||
<img src="src/pic/desktop.png" alt="desktop">
|
||||
</div>
|
||||
<div id="customer1" class="character">
|
||||
<img src="src/pic/Customer1_YoungMan.png" alt="中年男">
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user