select下拉框

简介:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test2.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script src="js/jquery-2.1.1.min.js" type="text/javascript">
        
    </script>
    <style>
        #select{
            width:100px;
            height:30px;
            background-color:#aff4fc;
            color:#ff8000;
            border-radius:5px;
        }
        select option{
            width:100px;
            height:30px;
        }
    </style>
  </head>
  
  <body>
    <select name="请选择" value="" id="select">
        <option>请选择--</option>
        <option value="北京">北京</option>
        <option name="name">上海</option>
        <option name="name">天津</option>
        <option name="name">武汉</option>
        <option name="name">陕西</option>
        <option name="name">山东</option>
        <option name="name">河南</option>
        <option name="name">河北</option>
        
    </select>
  </body>
  <script language="JavaScript">
      
  </script>

wKiom1gQa2iyBFMCAAAJbkhW23s135.png-wh_50</html>


 本文转自 matengbing 51CTO博客,原文链接:http://blog.51cto.com/matengbing/1865948


相关文章
|
4月前
|
前端开发 微服务
Element-Plus 表格 el-table 如何支持分页多选
Element-Plus 表格 el-table 如何支持分页多选
|
4月前
user-select不可被用户选中
user-select不可被用户选中
23 0
|
5月前
select选择框
select选择框
|
5月前
layUI禁用select下拉框
layUI禁用select下拉框
|
7月前
|
JavaScript
el-select下拉多选框 el-select 设置默认值不可删除功能
Element-UI是一款广泛使用的Vue.js组件库,其中El-Select下拉多选框组件在实际项目开发中经常被使用。然而,在Element 3.0版本中,El-Select下拉多选框默认值可被删除,这可能会导致一些意外情况。本文将介绍如何解决这个问题,实现El-Select下拉多选框设置默认值不可删除的功能。
247 0
el-select下拉多选框 el-select 设置默认值不可删除功能
|
9月前
|
索引
11-下拉框选择-Select类
11-下拉框选择-Select类
|
前端开发
select 下拉框不可选
select下拉框设置不可选
|
数据库
【TP5】select下拉框的默认显示父级
【TP5】select下拉框的默认显示父级
245 0
【TP5】select下拉框的默认显示父级