<template>
  <div class='container'>
    <div class='content'>
      // 内容
    </div>
  </div>
</template>
<style>
.container {
  position: fixed;
  bottom: 0;
  right: 0;
  margin-right: 10px;
}

.content {
  height: 20px;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
}
</style>
Vue.js 将元素定位到页面右下角 - 代码示例

原文地址: https://www.cveoy.top/t/topic/fPxB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录