Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit 6d1778a

Browse files
author
opencode
committed
docs: 添加清除默认 border-radius 的注意事项
1 parent 12f54b8 commit 6d1778a

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

skills/yida-custom-page/SKILL.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,20 +331,15 @@ var styles = {
331331
};
332332
```
333333

334-
11. **清除默认 padding**:宜搭自定义页面容器有默认 padding,需要强制覆盖为 0
334+
11. **清除默认 padding 和圆角**:宜搭自定义页面容器有默认 padding 和圆角,需要强制覆盖
335335
```javascript
336336
var styles = {
337337
container: {
338-
padding: '0 16px', // 先清除默认padding,再设置自己的padding
338+
padding: '0 16px',
339+
borderRadius: '0 !important', // 清除默认圆角
339340
minHeight: '100vh'
340341
}
341342
};
342-
343-
// 或者使用 !important 强制覆盖
344-
var containerStyle = {
345-
padding: '12px !important',
346-
minHeight: '100vh'
347-
};
348343
```
349344

350345
---

0 commit comments

Comments
 (0)