在使用css中的伪类选择器的时候,这个选择器不仅会选择该元素,而其会选到它兄弟的子代相应的元素,求解

<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <title>
    </title>
    <style type="text/css">
        /*新增的伪类选择器*/
        .ceshi li:first-child{
            background-color: pink;
        }
        /*.ceshi li:last-child{
            background-color: pink;
        }*/
        /*.ceshi li:nth-child(2n-1){
            background-color: pink;
        }*/
        </style>
</head>
<body>
    <ul class="ceshi">
            <li>小明</li>
            <li>小红</li>
            <li>小张</li>
            <li>小李</li>
            <div><li>小康</li></div>



https://blog.csdn.net/weixin_41309331/article/details/96651395