提交 96ed6417 编写于 作者: Q qq_42254384

Wed Sep 6 15:22:01 CST 2023 inscode

上级 27d1de12
<template> <template>
<div style="width:90px;height:100px;overflow:hidden;float:left;"> <div class="cover">
<div class="imgDiv" :style="{ <div class="imgDiv" :style="{
backgroundImage: `url(${danceInfo.who})`, backgroundImage: `url(${danceInfo.who})`,
backgroundPosition: `${img.x}px ${img.y}px` backgroundPosition: `${img.x}px ${img.y}px`
...@@ -53,10 +53,17 @@ onMounted(()=>{ ...@@ -53,10 +53,17 @@ onMounted(()=>{
</script> </script>
<style scoped> <style scoped>
.cover {
width:75px;
height:75px;
overflow:hidden;
float:left;
transform: scale(0.5);
}
.imgDiv { .imgDiv {
height: 768px; height: 768px;
width: 768px; width: 768px;
background-repeat: no-repeat; background-repeat: no-repeat;
transform: scale(0.1) translate(-420%, -420%); transform: scale(0.1) translate(-450%, -450%);
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册