zoukankan      html  css  js  c++  java
  • 简易自定义下拉菜单 与简易默认下拉html片段

    简易自定义下拉选择 html片段

    html:

    <div class="select_box province">
    <div class="selected">T时代C5</div>
    <div class="select_list_box" style="display:none;">
    <div class="select_list">T时代C5</div>
    <div class="select_list">T时代C5</div>
    <div class="select_list">T时代C5</div>
    <div class="select_list">T时代C5</div>
    <div class="select_list">T时代C5</div>
    </div>
    </div>

    css:

    .select_box{208px;height:26px;position:absolute;left:424px;top:80px;cursor:pointer;z-index:6;}
    .select_box .selected{208px;height:26px;line-height:26px;font-size:15px;text-indent:18px;}
    .select_list_box{208px;/*height:150px;*//*overflow:hidden;overflow-y:scroll;*/background:#FFF;}
    .select_list_box .select_list{208px;height:26px;font-size:15px;line-height:26px;text-indent:18px;border-top:1px solid #f5f5f5;}
    .select_list_box .select_list:hover{background:#c9c9c9;}

    .province{top:205px;z-index:5;}

    系统默认下拉

    html

    <div class="select_box">
    <select name="listZhiwei1" size="1"></select>
    <select name="listZhiwei2" size="1"></select>
    <select name="listZhiwei3" size="1"></select>
    </div>

    css

    .select_box { 490px; position: relative; z-index: 2; }

    .select_box select { 151px; height: 55px; margin-right: 8px; }

  • 相关阅读:
    《自己动手写操作系统》:开发环境配置心得
    sip.conf配置详情
    MySQL字符串中数字排序的问题
    Asterisk iax错误提示
    Python 快速入门
    C# winfrom 导出word
    SetWindowsHookEx函数参数详解
    Ubuntu Linux系统下轻松架设nginx+php服务器应用
    TShockwaveFlash的使用
    检讨
  • 原文地址:https://www.cnblogs.com/ruoqiang/p/4039633.html
Copyright © 2011-2022 走看看