>  Q&A  >  본문

css3 - 这段代码为什么是一个固定在页脚的浮动条,而不是上面,左边,或者右边?

CSS区域

    .footsty{
        bottom:0pt;
        margin:0pt;
        position:fixed;
        width:100%;
        z-index:10 !important ;
    }
    .footsty p{
        text-align:content;
        background-color:white;
        border-top:1px solid #8BAABF;
        padding:5px;

    }
</style>

CSS结束

html区域

<p class="footsty">
    <p>
        <span>这是一个固定页脚飘浮</span>
    </p>

html区域结束

为什么是一个固定在页脚的浮动条,而不是上面,左边,或者右边

天蓬老师天蓬老师2718일 전506

모든 응답(1)나는 대답할 것이다

  • 迷茫

    迷茫2017-04-17 11:26:02

    bottom:0pt;
    这不是么····
    离页面底部0磅···那就是在底部,然后width:100%,说明就是一个底部全宽固定条,高度就是p内容撑起来的高度

    회신하다
    0
  • 취소회신하다