HTML抖音登录界面的基本代码

HTML和CSS的抖音登录界面代码(无跳转)

主代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>〖抖音短视频〗 记录美好生活</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="icon" type="image/x-icon" href="img/favicon.ico">
</head>
<style>
    body{
        margin: 0;
    }
    video{
        position: fixed;
        right: 0;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -100;
        background-size: cover;
    }
    .header{
        width: 1200px;
        height: 120px;
    }
    .login_head{
        width: 98px;
        height: 120px;
        margin-left: 80px;
        position: fixed;
        /*display: inline-block;*/
    }
    .a0{
        width:98px;
        height: 120px;
    }
    .a0>img{
        margin-top: 32px;
    }
    .head_right{
        width: 651px;
        height: 122px;
        margin-right: 150px;
        float: right;
        /*display: inline-block;*/
    }
    .one{
        width: 107px;
        height: 121px;
        margin-left: 25px;
        display: inline-block;
        position: relative;
    }
    .a1{
        position: absolute;
        padding:50px 0px;
        width: 64px;
        height: 21px;
        color: #F7F8F8;
    }
    .one>img{
        position: absolute;
        padding:50px 0px 0px 64px;
        width: 38px;
        height: 22px;
        color: #F7F8F8;
    }
    .a2{
        position: absolute;
        margin-left: 135px;
        padding: 50px 0px;
        width: 64px;
        height: 21px;
        color: #F7F8F8;
    }
    .a3{
        position: absolute;
        margin-left: 256px;
        padding: 50px 0px;
        width: 80px;
        height: 21px;
        color: #F7F8F8;
    }
    .a4{
        position: absolute;
        margin-left: 382px;
        padding: 50px 0px;
        width: 80px;
        height: 21px;
        color: #F7F8F8;
    }
    .a5{
        position: absolute;
        margin-left: 528px;
        padding: 50px 0px;
        width: 64px;
        height: 21px;
        color: #F7F8F8;
    }
    .a6{
        position: absolute;
        margin-left: 647px;
        padding: 50px 0px;
        width: 64px;
        height: 21px;
        color: #F7F8F8;
    }
    .a7{
        position: absolute;
        margin-left: 725px;
        padding: 50px 0px;
        width: 64px;
        height: 21px;
        color: #F7F8F8;
    }
    .a7>img{
        width: 18px;
        height: 18px;
    }
    .middle{
        width: 500px;
        height: 182px;
        margin-top: 280px;
        margin-right: 360px;
        margin-left: 1200px;
        margin-bottom: 480px;
        position: relative;
    }
    .im1{
        width: 450px;
        height: 80px;
    }
    .a10{
        position: absolute;
        bottom: 0px;
        right: 50px;
    }
    .a9{
        position: absolute;
        bottom: 0px;
        right: 110px;
    }
    .a8{
        position: absolute;
        bottom: 0px;
        right: 250px;
    }

    .bd_link{
        width: 100%;
        height: 100px;
        margin-top: 50px;
        text-align: center;
    }
    .bd_link a{
        color: #FFFFFF;
    }
    .p_link>a{
        margin-left:5px;
        width: 640px;
        text-align: center;
        font-size: 13px;
        margin-top: 10px;
    }
    .p_button>span{
        margin-left: 25px;
        width: 640px;
        height: 25px;
        text-align: center;
        font-size: 13px;
        color: #FFFFFF;
    }
    .last1{
        font-size: 13px;
        text-align: center;
        color: #FFFFFF;
    }
    .last2{
        font-size: 13px;
        text-align: center;
        color: #FFFFFF;
    }
    .last2>img{
        width: 20px;
        height: 20px;
    }
</style>
<body>
    <video autoplay muted loop >
        <source src="video/tvc.mp4">
    </video>
    <div class="header">
    <div class="login_head">
        <a class="a0" href="#">
            <img src="img/logo_ef.png" alt="" width="98px" height="55px">
        </a>
    </div>
    <div class="head_right">
        <div class="one">
            <a class="a1" href="#">开放平台</a>
            <img src="video/beta_8d.png" alt="">
            <a class="a2" href="#">视频上传</a>
            <a class="a3" href="#">抖音特效师</a>
            <a class="a4" href="#">抖音音乐人</a>
            <a class="a5" href="#">机构认证</a>
            <a class="a6" href="#">企业认证</a>
            <a class="a7" href="#"><img src="img/unmute_cc.png" alt=""></a>
        </div>
        </div>
    </div>
    <div class="middle">
        <img class="im1" src="img/slogan_2_8d5.png" alt="">
        <a class="a8" href="#"><img class="im2" src="img/appstore_0.png" alt="" width="130px" height="50px"></a>
        <a class="a9" href="#"><img class="im3" src="img/android_d.png" alt="" width="130px" height="50px"></a>
        <a class="a10" href="#"><img class="im4" src="img/download_.png" alt="" width="50px" height="50px"></a>

    </div>
    <div class="bd_link">
        <p class="p_link">
            <a href="#">| 音乐 </a>
            <a href="#">| 用户协议 </a>
            <a href="#">| 隐私政策</a>
            <a href="#">| 账号找回</a>
            <a href="#">| 联系我们</a>
            <a href="#">| 广告投放</a>
            <a href="#">| 营业执照 |</a>
        </p>
        <p class="p_button">
            <span>2019 © 抖音  | 京ICP备16016397号-3 | 北京微播视界科技有限公司 |  京B2-20170846</span>
        </p>
        <p class="last1">
            <a href="#">中国互联网举报中心</a>| 网络文化许可证-京网文-(2016)2282-264号 | 违法和不良信息举报:400-140-2108 | 举报邮箱:jubao@douyin.com
        </p>
        <p class="last2">
            <img src="img/gongan_d.png" alt="" >
            <a href="#">京公网安备 11010802023605号</a> |  地址 : 北京市海淀区知春路51号4层408
        </p>
    </div>
</body>
</html>

reset

/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

html,body{
    width: 100%;
    height: 100%;
}

a{
    text-decoration: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
  • 1
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
抖音的UI界面比较复杂,需要涉及到多个组件和布局,但是可以通过Deveco Studio来实现。以下是一个简单的抖音UI界面的代码示例: ```xml <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"> <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/profile_image" android:layout_width="60dp" android:layout_height="60dp" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" android:src="@drawable/profile_image" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <ImageView android:id="@+id/menu_button" android:layout_width="32dp" android:layout_height="32dp" android:layout_gravity="end|top" android:layout_marginTop="16dp" android:layout_marginEnd="16dp" android:src="@drawable/ic_menu" /> <TextView android:id="@+id/user_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:text="用户名" android:textColor="@color/black" android:textSize="16sp" app:layout_constraintStart_toEndOf="@+id/profile_image" app:layout_constraintTop_toTopOf="@+id/profile_image" /> <TextView android:id="@+id/title_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal|top" android:layout_marginTop="16dp" android:text="关注" android:textColor="@color/black" android:textSize="20sp" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="72dp" android:clipToPadding="false" android:overScrollMode="never" app:layoutManager="LinearLayoutManager" tools:itemCount="10" tools:listitem="@layout/item_video" /> </FrameLayout> ``` 这个示例中包含了一个头部布局,包括用户头像、用户名和一个菜单按钮;还有一个标题和一个视频列表。 你可以根据自己的需求进行修改和扩展。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值