feat: page2 画框内嵌入手枪图片并修正居中
图片裁掉画布左侧多余透明边后铺在「图」区之上,四边各缩 0.1em 不压到「框」; 本地备份 *.orig.png 加入 .gitignore。
This commit is contained in:
1 parent
f1888fbaf8
commit
6d4bfc2253
4 files changed
+22
No files matched your search
@@ -86,6 +86,14 @@
|
||||
});
|
||||
|
||||
const scene = document.querySelector('.scene');
|
||||
|
||||
/* 画框照片:盖在「图」区之上,四边各缩 0.1em 以免压到「框」 */
|
||||
const picture = document.createElement('img');
|
||||
picture.className = 'picture-img';
|
||||
picture.src = 'assets/images/page2-picture.png';
|
||||
picture.alt = '';
|
||||
scene.append(picture);
|
||||
|
||||
const listing = document.createElement('h1');
|
||||
listing.className = 'listing';
|
||||
listing.textContent = '酒水单';
|
||||
|
||||
Reference in new issue
Block a user