CSS样式:

    .width5
    {
        width: 50px;
    }  
    .width6
    {
        width: 60px;
    }  
    .width7
    {
        width: 70px;
    }  
    .width8
    {
        width: 80px;
    }  
    .width9
    {
        width: 90px;
    }  
    
/*套在Select外层,用于隐藏Select框*/
.DivSelect
{
    float:left;
    position: relative;
    background-color: transparent;
    height: 17px;
    overflow: hidden; /*隐藏了小三角,宽度为比select宽度少20px*/
    border-width:0px;
    border-top-style: none; 
    border-right-style: none; 
    border-left-style: none; 
    border-bottom-style: none;
}

/*设置Select样式*/
.SelectList
{
    position: relative;
    background-color: transparent;
    TOP:   -2px;
    left:-2px;
    border-width: 0px;
    border-top-style: none; 
    border-right-style: none; 
    border-left-style: none; 
    border-bottom-style: none;
    display:block;
    height: 20px;
    overflow:hidden;
}

 

前台代码:

                        <div class="DivSelect width5">
                            <select  class="SelectList width7">
                                <option>双铜纸</option>
                                <option>双胶纸</option>
                            </select>
                        </div>

 

 

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案