练习——制作懂车帝-视频播放页面(导航栏定位布局+内容div布局且浮动)

一、代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>懂车帝练习</title>
</head>
<style>
    * {
   
        margin: 0;
        padding: 0px;
    }

    nav {
   
        height: 68px;
        background-color: #fff;
        position: sticky;
        top: 0px;
        padding-top: 10px;
        box-sizing: border-box;
    }

    ul {
   
        /* background-color: greenyellow; */
        list-style: none;

        /* 当内容超出容器时,多余的内容隐藏,在这里用他的原因,是为了触发BFC环境 */
        overflow: hidden;
        padding-left: 60px;
    }

    ul li {
   
        float: left;
        margin-left: 30px;
    }

    a {
   
        text-decoration: none;
        color: initial;
        height: 46px;
        display: inline-block;
        line-height: 46px;
    }

   
    .input-li {
   
        margin-left: 2px;
        width: 639px;
        height: 40px;
        border: 2px solid #ffcc32;

    }
    
    .input-li input {
   
        outline: none;
        width:88%;
        height: 40px;
        border: none;
        
    }

    .button {
   
        width: 12%;
        height: 40px;
        background-color: #ffcc32;
        border:none;
        background-image: none;
    }
    
    a:hover {
   
        color: red;
    }

    li img:hover {
   
        /* 改变鼠标的形状,pointer是手 */
        cursor: pointer
    }

    /* placeholder 可以改变输入框中的提示内容的样式 */
    ::placeholder{
   
        color: rgba(202, 200, 200, 6);
    }

    
    body {
   
        background-color: #f7f8fc;
        font-size: 14px;
        /*字符之间的距离 */
        letter-spacing: 3px;
        /* 单词与单词之间的距离 */
        word-spacing: 20px;

    }

    main {
   
        width: 90%;
        height:704px;
        /* 水平居中 */
        margin: auto;
        padding-top: 30px; 
    }

    .video-container {
   
        width: 100%
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值