一个具有顶部,底部和中间的html页面,但没有js

<view class="root">
<!-- 标签栏的页签 固定高度 -->
<view class="tabs">
<view class="item active">
<text>个性推荐</text>
</view>
<view class="item">
<text>歌单</text>
</view>
<view class="item">
<text>主播电台</text>
</view>
<view class="item">
<text>排行榜</text>
</view>
</view>
<!-- 内容区域 自适应高度 -->
<scroll-view class="content" scroll-y>
<swiper class="slide" autoplay indicator-dots>
<swiper-item>
<image src="../../images/slide.png"></image>
</swiper-item>
<swiper-item>
<image src="../../images/slide.png"></image>
</swiper-item>
<swiper-item>
<image src="../../images/slide.png"></image>
</swiper-item>
</swiper>
<view class="portals">
<view class="item">
<image src="../../images/04.png"></image>
<text>私人FM</text>
</view>
<view class="item">
<image src="../../images/05.png"></image>
<text>每日歌曲推荐</text>
</view>
<view class="item">
<image src="../../images/06.png"></image>
<text>云音乐新歌榜</text>
</view>
</view>
<view class="list">
<view class="title">
<text>推荐歌单</text>
</view>
<view class="inner">
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
<view class="item">
<image src="../../images/poster.jpg"></image>
<text>一生中最爱的是谁谁?</text>
</view>
</view>
</view>
</scroll-view>
<!-- 播放控制条条 固定高度 -->
<view class="player">
<view class="poster">
<image src="../../images/poster.jpg"></image>
</view>
<view class="info">
<text class="title">一生中最爱</text>
<text class="artist">谭咏麟</text>
</view>
<view class="controls">
<image src="../../images/01.png"></image>
<image src="../../images/02.png"></image>
<image src="../../images/03.png"></image>
</view>
</view>
</view>
page {
height: 100%;
} .root {
display: flex;
flex-direction: column;
height: 100%;
background-color: #f0f0f0;
} .tabs {
display: flex;
background-color: pink;
} .tabs .item {
flex: 1;
text-align: center;
font-size: 12px;
background-color: #222;
color: #ccc;
padding: 8px 0;
} .tabs .item.active {
color: #fff;
border-bottom: 2px solid #e9232c;
} .content {
flex: 1;
background-color: #111214;
color: #ccc;
overflow: hidden;
} .slide image {
width: 100%;
height: 130px;
} .portals {
display: flex;
margin-bottom: 15px;
} .portals .item {
flex: 1;
} .portals .item image {
width: 60px;
height: 60px;
display: block;
margin: 10px auto;
} .portals .item text {
display: block;
font-size: 12px;
text-align: center;
} .list .title {
margin: 5px 10px;
font-size: 14px;
} .list .inner {
display: flex;
flex-wrap: wrap;
} .list .inner .item {
width: 33.33333333%;
} .list .inner .item image {
display: block;
width: 120px;
height: 120px;
margin: 0 auto;
} .list .inner .item text {
font-size: 14px;
} .player {
display: flex;
height: 50px;
background-color: #17181A;
} .poster image {
width: 40px;
height: 40px;
margin: 5px;
} .info {
flex: 1;
color: #888;
font-size: 14px;
margin: 5px;
} .info .title{
display: block;
font-size: 16px;
color: #ccc;
} .controls image {
width: 40px;
height: 40px;
margin: 5px 2px;
}

可以改一下页面的固定样式部分

{
"navigationBarTitleText": "Music Player",
"navigationBarBackgroundColor": "#333",
"navigationBarTextStyle": "white"
}

最新文章

  1. Hadoop中的问题排查思路
  2. fiddler监听127.0.0.1或localhost
  3. 实现Map-side Join和Reduce-side Join(转)
  4. [CareerCup] 8.8 Othello Game 黑白棋游戏
  5. RedHat6.2 下RRDTool安装方法
  6. [转]EntityFramework走马观花之CRUD(上)
  7. [leetcode]_Same Tree
  8. Jquery效果之固定不动的块
  9. GO:格式化代码
  10. 百度复制SQL语句
  11. Linux发行版 CentOS6.5 禁用防火墙步骤
  12. celery4+django2定时任务
  13. 【转】C++命名空间 namespace的作用和使用解析
  14. 04 树莓派截图软件scrot的安装和使用
  15. Linux - 创建定时任务
  16. 简单xmlrpc服务器
  17. InstallShield2015制作安装包----------卸载前结束执行中的进程
  18. noip2017颓废记
  19. Alone
  20. vue构造器以及实例属性

热门文章

  1. python核心编程笔记(转)
  2. Android Saripaar 注解详解
  3. Python开发-实现Excel套打打印
  4. Python开发GUI工具介绍,实战:将图片转化为素描画!
  5. 转:Maven的默认中央仓库以及修改默认仓库&amp;配置第三方jar包从私服下载
  6. 虚拟环境创建的另外一种方法:anaconda
  7. CentOS下永久修改主机名
  8. JS获得天数差异
  9. [TimLinux] docker CentOS7安装docker-ce最新版
  10. POJ 3041 Asteroids(二分图模板题)