### [微信小程序实例:详情页静态页面搭建的方法介绍](https://www.prosaas.cn/article/17069) **Published:** 2018-09-04T08:41:33 **Author:** 5201314 **Excerpt:** 本篇文章给大家带来的内容是关于微信小程序实例:详情页静态页面搭建的方法介绍 ,有一定的参考价值,有需要的朋友可… 本篇文章给大家带来的内容是关于微信小程序实例:详情页静态页面搭建的方法介绍 ,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 `pages`目录下新建目录`detail`,里面新建页面`detail`: ![](https://img-blog.csdn.net/20180902192629582?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2OTAxNDg4/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70) 在`detail.json`中先把导航栏标题文字内容改一下: { "navigationBarTitleText": "DETAIL页面" } `detail.wxml` 美国队长 发布于 2018 06 12 火影村 火咖啡馆就是了疯狂关键时刻来得及公司领导看过就发上来的考试管理的风格就是的离开几个老师 `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; } 效果图如下: ![](https://img-blog.csdn.net/20180903131115795?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2OTAxNDg4/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70) 相关推荐: 微信小程序案例详解:页面搭建 微信小程序开发-创建欢迎页面 以上就是微信小程序实例:详情页静态页面搭建的方法介绍的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** json, 微信小程序 **Categories:** 后端开发 ---