这个标题如何粘贴?

问题描述 投票:0回答:1
html css responsive-design antd
1个回答
0
投票

.ant-list-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 30px;
    background-color: white; 
}
<div class="ant-list-header">
    <div><strong>Unmapped Rate Plans</strong><strong>See all</strong></div>
</div>
<ul class="ant-list-items">
    <li>some text</li>
     <li>some text</li>
      <li>some text</li>
       <li>some text</li>
        <li>some text</li>
         <li>some text</li>
          <li>some text</li>
           <li>some text</li>
     <li>some text</li>
      <li>some text</li>
       <li>some text</li>
        <li>some text</li>
         <li>some text</li>
          <li>some text</li>
           <li>some text</li>
     <li>some text</li>
      <li>some text</li>
       <li>some text</li>
        <li>some text</li>
         <li>some text</li>
          <li>some text</li>
           <li>some text</li>
     <li>some text</li>
      <li>some text</li>
       <li>some text</li>
        <li>some text</li>
         <li>some text</li>
          <li>some text</li>
</ul>

© www.soinside.com 2019 - 2024. All rights reserved.