


This article brings you an example of a WeChat mini program: an introduction to the method of building a static page for details. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. Create a new directory
detail under the pages
directory, and create a new page detail
:
in detail .json
First change the text content of the navigation bar title:
{ "navigationBarTitleText": "DETAIL页面" }
detail.wxml
<!--pages/detail/detail.wxml--><view class='detailContainer'> <image class='headImg' src='/images/detail/carousel/1.jpg'></image> <view class='avatar_date'> <image src='/images/avatar/0.png'></image> <text>美国队长</text> <text>发布于</text> <text>2018 06 12</text> </view> <text class='company'>火影村</text> <view class='collection_share_container'> <view class='collection_share'> <image src='/images/icon/collection-anti.png'></image> <image src='/images/icon/share-anti.png'></image> </view> <view class='line'></view> </view> <button>转发此文章</button> <text class='content'>火咖啡馆就是了疯狂关键时刻来得及公司领导看过就发上来的考试管理的风格就是的离开几个老师</text></view>
detail.wxss
/* pages/detail/detail.wxss */ .detailContainer { display: flex; flex-direction: column; } .headImg{ width:100%; height:460rpx; } .avatar_date{ padding: 10rpx; } .avatar_date image{ width: 64rpx; height: 64rpx; vertical-align: middle; } .avatar_date text{ font-size: 32rpx; margin-left: 10rpx; } .company{ font-size: 38rpx; font-weight: bold; margin-left: 10rpx; } .collection_share_container{ position: relative; } .collection_share{ float: right; margin-right: 50rpx; } .collection_share image{ width: 90rpx; height: 90rpx; margin-right: 20rpx; } .line{ width: 90%; height: 2rpx; background: rgb(226, 19, 19); top: 45rpx; left: 5%; position: absolute; z-index: -1; } button{ width: 280rpx; height: 80rpx; } .content{ font-size: 32rpx; text-indent: 64rpx; margin: 50rpx 0; }
The renderings are as follows:
Related recommendations:
Detailed explanation of WeChat mini program case: Page construction
WeChat Mini Program Development-Creating a Welcome Page
The above is the detailed content of WeChat Mini Program Example: Introduction to the method of building a static page for details page. For more information, please follow other related articles on the PHP Chinese website!

本篇文章给大家带来了关于微信小程序的相关问题,其中主要介绍了关于基础架构原理的相关内容,其中包括了宿主环境、执行环境、小程序整体架构、运行机制、更新机制、数据通信机制等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于微信小程序的相关知识,其中主要介绍了关于云服务的配置详解,包括了创建使用云开发项目、搭建云环境、测试云服务等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于微信小程序的相关知识,其中主要介绍了关于富文本编辑器的实战示例,包括了创建发布页面、实现基本布局、实现编辑区操作栏的功能等内容,下面一起来看一下,希望对大家有帮助。

西安坐地铁用的小程序为“乘车码”。使用方法:1、打开手机微信客户端,点击“发现”中的“小程序”;2、在搜索栏中输入“乘车码”进行搜索;3、直接定位城市西安,或者搜索西安,点击“西安地铁乘车码”选项的“去乘车”按钮;4、根据腾讯官方提示进行授权,开通“乘车码”业务即可利用该小程序提供的二维码来支付乘车了。

本篇文章给大家带来了关于微信小程序的相关知识,其中主要介绍了怎么实现小程序授权登录功能的相关内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于微信小程序的相关问题,其中主要介绍了关于开发工具介绍的相关内容,包括了下载开发工具以及编辑器总结等内容,下面一起来看一下,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
