SELECT INPUT的一种样式定义[--图--]

  1. <%@ page contentType="text/html; charset=gb2312" language="java"%>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>select input CSS样式</title>
  6. <style type="text/css">
  7. <!--
  8. body {
  9.     background-color: #F2F3F4;
  10. }
  11. .STYLE1 {font-size: 12px}
  12. input{font-size:12px;
  13. height:18px;
  14. border:1px solid #666666;
  15. }
  16. select{font-size:12px;
  17. border:1px solid #666666;
  18. margin:-2;
  19. }
  20. -->
  21. </style>
  22. </head>
  23. <body>
  24. <p class="STYLE1">SELECT INPUT的一种样式定义 注意select放在表格内外在样式的区别</p>
  25.   <table width="300" border="1" cellspacing="0">
  26.   <form name="form1" method="post" action="">
  27.     <tr>
  28.       <td><select name="select" id="select" class="STYLE1">
  29.         <option value="JAVA">Java程序员</option>
  30.         <option value="C++">C++程序员</option>
  31.         <option value=".NET">.NET程序员</option>
  32.       </select></td>
  33.       <td><input type="text" name="textfield"></td>
  34.     </tr>
  35.     </form>
  36.   </table>
  37.   <table width="300" border="1" cellspacing="0">
  38.     <tr>
  39.       <td><select name="select" id="select" class="STYLE1">
  40.         <option value="JAVA">Java程序员</option>
  41.         <option value="C++">C++程序员</option>
  42.         <option value=".NET">.NET程序员</option>
  43.       </select></td>
  44.       <td><input type="text" name="textfield"></td>
  45.     </tr>
  46.   </table>
  47.   <br>
  48.   <select name="select" id="select" class="STYLE1">
  49.         <option value="JAVA">Java程序员</option>
  50.         <option value="C++">C++程序员</option>
  51.         <option value=".NET">.NET程序员</option>
  52.   </select>
  53. </body>
  54. </html>
  55. 注意select放在表格内外在样式的区别
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值