Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does WeChat Mini Programs realize the Nine Palace Grid?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how WeChat Mini Programs realizes the Nine Palace Grid". In the daily operation, I believe that many people have doubts about how WeChat Mini Programs realizes the Nine Palace Lattice. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how WeChat Mini Programs realizes the Nine Palace Grid". Next, please follow the editor to study!

Here are the implementation steps:

Add data to .js

Page ({

/ * *

* initial data of the page

, /

Data: {

Routers: [

{

Text:'my account'

Icon:'.. /.. / images/mine/mine_account.png'

Url:'.. / myAccount/myAccount'

}

{

Text:'my contract'

Icon:'.. /.. / images/mine/mine_contract.png'

Url:'.. / myAccount/myAccount'

}

{

Text: 'browsing history'

Icon:'.. /.. / images/mine/mine_browing.png'

Url:'.. / myAccount/myAccount'

}

{

Text: "I want to rent it."

Icon:'.. /.. / images/mine/mine_lease.png'

Url:'.. / myAccount/myAccount'

}

{

Text: 'customer service'

Icon:'.. /.. / images/mine/mine_customService.png'

Url:'.. / myAccount/myAccount'

}

{

Text:'my Collection'

Icon:'.. /.. / images/mine/mine_collect.png'

Url:'.. / myAccount/myAccount'

}

]

}

})

In .wxml, add weui-grids

{{item.text}}

Setting style in wxss

. weui-grids {

Position: relative

Overflow: hidden

Margin-top: 10rpx

}

. weui-grids:before {

Content: ""

Position: absolute

Left: 0

Top: 0

Right: 0

Height: 1px

Border-top: 1px solid # D9D9D9

Color: # D9D9D9

-webkit-transform-origin: 0 0

Transform-origin: 0 0

-webkit-transform: scaleY (0.5)

Transform: scaleY (0.5)

}

. weui-grids:after {

Content: ""

Position: absolute

Left: 0

Top: 0

Width: 1px

Bottom: 0

Border-left: 1px solid # D9D9D9

Color: # D9D9D9

-webkit-transform-origin: 0 0

Transform-origin: 0 0

-webkit-transform: scaleX (0.5)

Transform: scaleX (0.5)

}

. weui-grid {

Position: relative

Float: left

Padding: 20px 10px

Width: 33.33333333%

Box-sizing: border-box

Background-color: white

}

. weui-grid:before {

Content:

At this point, the study on "how to achieve the ninth palace grid by WeChat Mini Programs" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report