<template>
  <div style="text-align:center">
    <div class="mobile-phone-box">
      <div class="inner">
        <div class="screen">
          <slot />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MobilePhone',
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.mobile-phone-box {
  // transform: scale(0.7);
  // firefox zoom无效
  -moz-transform: scale(0.7);
  // chrome 用scale会失真模糊
  zoom: 0.7;
  transform-origin: top center;
  width: 431px;
  height: 855px;
  text-align: center;
  // zoom: 0.7;
  background: url('/pic/custom-center/mobile-iphone6.png') no-repeat center;
  // background-size: 100% 100%;
  display: inline-block;
  margin-top: 20px;
  .inner {
    width: 375px;
    height: 667px;
    margin-top: 91px;
    margin-left: 30px;
    overflow: hidden;
    .screen {
      width: 375px;
      height: 667px;
      border: none;
      background-color: #f9f9f9;
      // background-color: #f00;
      border-radius: 8px;
      overflow-x: hidden;
      overflow-y: scroll;
      &::-webkit-scrollbar {
        width: 0px;
        display: none;
      }

      .header {
        position: relative;
      }
    }
  }
}
</style>
