zoukankan      html  css  js  c++  java
  • uni-app页面导航栏透明背景

    效果:

    代码:

    // pages.json ,需要的页面添加 
    {
    "path": "pages/ServiceHome/ServiceHome", "style": { "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "transparent", "navigationBarTextStyle": "white", "app-plus": { "titleNView": { "type": "float", "titleText": "uni-app" } } } },
    <template>
        <view class="home-container">
            <view class="home-top">
                <image class="bg" src="../../static/icon/bg.jpeg"></image>
            </view>
        </view>
    </template>
    
    <script>
    </script>
    
    <style lang="scss" scoped>
        .home-container{
            min-height: 100vh;
            .home-top{
                position: relative;
                 100vw;
                height: 500rpx;
                background-color: #007AFF;
                .bg{
                    position: absolute;
                    top: 0;
                    left: 0;
                     100%;
                    height: 100%;
                }
            }
        }
    </style>
  • 相关阅读:
    分布式和集群
    c++ >>
    c++ ip地址相关
    c++ ip地址的操作 c版
    c++ 缺少动态库
    c++ dirname() basename()
    shell ulimit -n
    shell 进程查询相关的命令
    shell grep 高亮
    c++ swap 函数
  • 原文地址:https://www.cnblogs.com/zhaohui-116/p/14285948.html
Copyright © 2011-2022 走看看