会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132440个问题
JAVA 全系列/第八阶段:Linux入门到实战/Linux(旧) 11960楼
Python 全系列/第二阶段:Python 深入与提高/异常机制 11963楼

[root@iz2zeek5f6r156rkimkjvbz charsets]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[root@iz2zeek5f6r156rkimkjvbz charsets]# docker logs mysql
2021-11-13 14:05:42+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
2021-11-13 14:05:42+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
    command was: mysqld --character-set-server=utf8mb4--collation-server=utf8mb4_unicode_ci --verbose --help --log-bin-index=/tmp/tmp.Q6mU6pM1k0
    mysqld: Character set 'utf8mb4--collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
mysqld: Character set 'utf8mb4--collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
2021-11-13 14:32:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
2021-11-13 14:32:03+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
    command was: mysqld --character-set-server=utf8mb4--collation-server=utf8mb4_unicode_ci --verbose --help --log-bin-index=/tmp/tmp.N4ECJMoqQu
    mysqld: Character set 'utf8mb4--collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
mysqld: Character set 'utf8mb4--collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file

JAVA 全系列/(隐藏)第二十三阶段:数字货币交易所项目/环境的搭建 11964楼

<style>
        .wrap{
            width: 1226px;
            height: 40px;
            background-color: #333333;
            font-size: 12px;
            color: #b0b0b0;
            margin: 0 auto;
        }
        .nav-left{
            float: left;
        }
        .nav-right{
            float: right;
        }
        li{
            float: left;
            list-style: none;
            position: relative;
        }
        span{
            margin: 0.3em;
            color: #424242;
            font-family: sans-serif;
        }
        .wrap>.nav-right>li:nth-child(-n+2){
            padding: 0 5px;
        }
        .wrap>.nav-right>li:nth-child(3){
            width: 48px;
            padding: 0 10px;
        }
        .wrap>.nav-right>li:nth-child(4){
            width: 120px;
        }
        .download{
            width: 124px;
            height: 0;
            background-color: #ffffff;
            box-shadow: 0 1px 5px #aaa;
            position: absolute;
            top: 40px;
            left: 50%;
            margin-left: -62px;
            overflow: hidden;
        }
        .download>img{
            width: 90px;
            height: 90px;
            margin: 10px 16px 8px;
        }
        .download>p{
            color: #333;
            font-size: 14px;
            line-height: 14px;
            text-align: center;
        }
        .nav-left>li:hover>.download{
            height: 148px;
            transition: all 0.2s;
        }
        .tri{
            width: 0;
            height: 0;
            border-bottom: 8px solid red;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            position: absolute;
            bottom: 0;
            left: 50%;
            margin-left: -8px;
            display: none;
        }
        .nav-left>li:hover>.tri{
            display: block;
        }
    </style>
</head>
<body>
    <div class="wrap">
        <ul class="nav-left">
            <li><a href="#"></a>小米商城<span>|</span></li>
            <li><a href="#"></a>MlUl<span>|</span></li>
            <li><a href="#"></a>loT<span>|</span></li>
            <li><a href="#"></a>云服务<span>|</span></li>
            <li><a href="#"></a>天星数科<span>|</span></li>
            <li><a href="#"></a>有品<span>|</span></li>
            <li><a href="#"></a>小爱开放平台<span>|</span></li>
            <li><a href="#"></a>企业团购<span>|</span></li>
            <li><a href="#"></a>资质证照<span>|</span></li>
            <li><a href="#"></a>协议规则<span>|</span></li>
            <li><a href="#"></a>下载app<span>|</span>
                <div class="download">
                    <img src="images/小米app.jpg" height="109" width="112"/>
                    <p>小米商城APP</p>
                </div>
                <div class="tri"></div>
            </li>
            <li><a href="#"></a>智能生活<span>|</span></li>
            <li><a href="#"></a>Select Location</li>
        </ul>
        <ul class="nav-right">
            <li><a href=""></a>登录<span>|</span></li>
            <li><a href=""></a>注册<span>|</span></li>
            <li><a href=""></a>消息通知</li>
            <li><a href=""></a>购物车</li>
        </ul>
    </div>
</body>

image.png

问题1:.tri那里的left:50%  margin-left:-8px不明白,不知道怎么找三角形的位移

问题2:为什么效果图里tri和download的位置不在一起

WEB前端全系列/第一阶段:HTML5+CSS3模块/CSS3新特性 11965楼
Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask数据库 11966楼
Python 全系列/第二阶段:Python 深入与提高/GUI编程(隐藏) 11969楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637