From 73bcd2b85f1afeedd1d029d03a65493c559b9dde Mon Sep 17 00:00:00 2001 From: handongxun Date: Mon, 11 Jul 2022 19:51:16 +0800 Subject: [PATCH] =?UTF-8?q?ad-grid:=20=E6=94=AF=E6=8C=81=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/ad-grid.md | 89 ++++++--------------------------------- 1 file changed, 14 insertions(+), 75 deletions(-) diff --git a/docs/component/ad-grid.md b/docs/component/ad-grid.md index e6787874f..dd525051a 100644 --- a/docs/component/ad-grid.md +++ b/docs/component/ad-grid.md @@ -8,44 +8,20 @@ |App|H5|微信小程序|支付宝小程序|百度小程序|字节跳动小程序、飞书小程序|QQ小程序|快应用|360小程序|快手小程序|京东小程序| |:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|x|x|x|x|x|x|x|x| - +|x|x|√ 3.5.1+|x|x|x|x|x|x|x|x| **开通配置广告** -开通广告步骤: - -在各自的小程序管理后台操作。 +[开通广告步骤详情](https://uniapp.dcloud.net.cn/uni-ad.html#start) **属性说明** -|属性名|类型|默认值|说明|平台差异| -|:-|:-|:-|:-|:-| -|unit-id|String||广告单元id,可在小程序管理后台的流量主模块新建|微信小程序| -|ad-type|String|grid||微信小程序| -|@load|EventHandle||广告加载成功的回调|| -|@error|EventHandle||广告加载失败的回调|| -|@close|EventHandle||广告关闭的回调|| - -### 广告尺寸设置 - -Grid 广告不允许直接设置样式属性,默认宽度为100%(width: 100%),高度会自动等比例计算,因此开发者可以设置广告外层组件的宽度调整广告的尺寸。格子广告有最小尺寸限制,5个的形态为331px,8个的形态为294px。 - -```html - - - -``` - -```css -