响应式长度单位rpx

如何让元素大小适配不同宽度屏幕?

<image class="about-banner" src="/images/美少女.jpg"></image>
<text style="font-weight:bold;font-size:60rpx">电影周周看</text>
.about-banner{
  width:375rpx;
  height: 375rpx;
  border-radius: 50%;
}
发布了39 篇原创文章 · 获赞 0 · 访问量 557

猜你喜欢

转载自blog.csdn.net/qq_23080805/article/details/104619198