# 设计问题：更改论坛径向背景尺寸

**URL:** <https://meta.discourse.org/t/design-question-change-forum-radial-background-dimensions/143323>\
**Category:** Product Support\
**Created:** [2020 年3 月 4 日 17:38 UTC](https://meta.discourse.org/t/design-question-change-forum-radial-background-dimensions/143323 "2020-03-04T17:38:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
发布日期： [2020 年3 月 4 日 18:07 UTC](https://meta.discourse.org/t/design-question-change-forum-radial-background-dimensions/143323/3 "2020-03-04T18:07:34Z")

</div>

哦对了，我忘了 `background-attachment: fixed` 在 iOS 上不起作用……他们禁用了这个功能，因为据说滚动时会导致整个屏幕重绘，这对性能很不利。

不过有一些变通方法……

> **示例 CSS**
>
> ```css
> body.mobile-view {
> background: none;
> }
> 
> body.mobile-view:after {
> content:"";
> position:fixed;
> left:0;
> top:0;
> right:0;
> bottom:0;
> z-index:-1;
> display:block;
> background: radial-gradient(circle at center, rgba(255,255,255,1) 50%, rgba(255,255,255,0)) fixed, url(https://forums.pickleballist.com/uploads/default/original/1X/e7792afe9a5b7fbd26141c3c21e82b70cd495069.svg) center top / 300px auto;
> background-size:cover;
> }
> 
> ```

……不过，虽然这些方法启用了该功能，但它们仍然会受到性能问题的影响。如果你对此不太满意，或许可以考虑为移动端采用完全不同的背景方案。

---

_[View the full topic](https://meta.discourse.org/t/design-question-change-forum-radial-background-dimensions/143323)._
