Support Layout
Reponsive
Fixed-height
Fixed
Sample
Banner Style
layout= "responsive" for component layout settings, document
<mip-ad
layout= "Responsive"
Width= "414"
height= "80"
Type= "Ad-comm"
Tpl= "Onlyimg"
href= "//m.baidu.com/s?word= Baidu"
Data-size= "1242 180"
src= "//m.baidu.com/static/search/ala/ad_1.png" >
</mip-ad>
no diagram style
<mip-ad
layout= "Fixed-height"
height= "80"
Type= "Ad-comm"
Tpl= "Noneimg"
href= "//m.baidu.com/s?word= Baidu"
data-title= "ad title" >
</mip-ad>
single-chart style
<mip-ad
layout= "Reponsive"
Width= "414"
height= "80"
Type= "Ad-comm"
Tpl= "Oneimg"
href= "//m.baidu.com/s?word= Baidu"
Data-size= "1242 180"
Src= "Https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2357051511,2286288825&fm=11&gp=0.jpg"
data-title= "ad title" >
</mip-ad>
Multi-graph style
<mip-ad
Type= "Ad-comm"
Tpl= "Moreimg"
href= "//m.baidu.com/s?word= Baidu"
Data-size= "1242 180"
Src= "Yun_qi_img/error.html;yun_qi_img/error.html;yun_qi_img/error.html"
Data-ads= "Here is a summary of the advertisement;
Data-txt= "Here is the title of the picture; This is the title of the picture."
Data-title= "Here is the ad title here is the ad title label" >
</mip-ad>
Property
type
Description: Advertising Type
Required option: Yes
Type: string
Value: Ad-comm Default value: None
TPL
Description: Style
Required option: Yes
Type: string
Value: banner,noneimg,oneimg,moreimg Default value: None
href
Description: Jump Address
Required option: Yes
Type: URL
Default value: None
src
Description: Picture address, in multiple image types, the address of multiple pictures with a half-width semicolon (;) separated
Required option: No
Type: string
Default value: None
data-size
Description: Picture size, used to set the picture's width and height ratio, in the case of a picture need to set
Required option: No (required when advertisement type is banner)
Type: Two digits separated by spaces
Default value: None
Data-title
Description: Advertisement title, can be set as the advertisement description
Required options: Banner, multiple graphs) No (no diagram, single picture) is
Type: string
Default value: None
Data-txt
Description: Ad subheadings, multiple maps available
Required option: No
Type: string
Default value: None
data-ads
Description: Ad summary, available when multiple diagrams
Required option: No
Type: string
Default value: None