이 기사는 WeChat 애플릿의 예를 제공합니다. 자세한 내용은 정적 페이지를 구축하는 방법에 대한 소개입니다. 도움이 필요한 친구들이 참고할 수 있기를 바랍니다.
pages
디렉터리 아래에 새 디렉터리 detail
을 만들고 내부에 새 페이지 detail
을 만듭니다. pages
目录下新建目录detail
,里面新建页面detail
:
在detail.json
中先把导航栏标题文字内容改一下:
{ "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
detail.json
에서 먼저 탐색 모음 제목의 텍스트 내용을 변경합니다: /* 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; }
detail.wxml

detail.wxss code><p>rrreee</p>렌더링은 다음과 같습니다: <p><a href="http://www.php.cn/xiaochengxu-354851.html" target="_self"></a><br>관련 권장 사항: </p>
<p><a href="http://www.php.cn/xiaochengxu-353502.html" target="_self">WeChat 미니 프로그램 사례에 대한 자세한 설명: 페이지 구성</a></p>🎜🎜🎜WeChat 미니 프로그램 개발-환영 페이지 생성🎜🎜
위 내용은 WeChat Mini 프로그램 예시: 세부정보 페이지에 대한 정적 페이지 구축 방법 소개의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

Eclipse용 SAP NetWeaver 서버 어댑터
Eclipse를 SAP NetWeaver 애플리케이션 서버와 통합합니다.

Atom Editor Mac 버전 다운로드
가장 인기 있는 오픈 소스 편집기

SecList
SecLists는 최고의 보안 테스터의 동반자입니다. 보안 평가 시 자주 사용되는 다양한 유형의 목록을 한 곳에 모아 놓은 것입니다. SecLists는 보안 테스터에게 필요할 수 있는 모든 목록을 편리하게 제공하여 보안 테스트를 더욱 효율적이고 생산적으로 만드는 데 도움이 됩니다. 목록 유형에는 사용자 이름, 비밀번호, URL, 퍼징 페이로드, 민감한 데이터 패턴, 웹 셸 등이 포함됩니다. 테스터는 이 저장소를 새로운 테스트 시스템으로 간단히 가져올 수 있으며 필요한 모든 유형의 목록에 액세스할 수 있습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

에디트플러스 중국어 크랙 버전
작은 크기, 구문 강조, 코드 프롬프트 기능을 지원하지 않음
