SELECT INPUT的一种样式定义 注意select放在表格内外在样式的区别
2008-10-17 16:55
423 查看
![](http://p.blog.csdn.net/images/p_blog_csdn_net/taosst/EntryImages/20081017/yangshi.jpg)
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>select input CSS样式</title>
<style type="text/css">
<!--
body {
background-color: #F2F3F4;
}
.STYLE1 {font-size: 12px}
input{font-size:12px;
height:18px;
border:1px solid #666666;
}
select{font-size:12px;
border:1px solid #666666;
margin:-2;
}
-->
</style>
</head>
<body>
<p class="STYLE1">SELECT INPUT的一种样式定义 注意select放在表格内外在样式的区别</p>
<table width="300" border="1" cellspacing="0">
<form name="form1" method="post" action="">
<tr>
<td><select name="select" id="select" class="STYLE1">
<option value="JAVA">Java程序员</option>
<option value="C++">C++程序员</option>
<option value=".NET">.NET程序员</option>
</select></td>
<td><input type="text" name="textfield"></td>
</tr>
</form>
</table>
<table width="300" border="1" cellspacing="0">
<tr>
<td><select name="select" id="select" class="STYLE1">
<option value="JAVA">Java程序员</option>
<option value="C++">C++程序员</option>
<option value=".NET">.NET程序员</option>
</select></td>
<td><input type="text" name="textfield"></td>
</tr>
</table>
<br>
<select name="select" id="select" class="STYLE1">
<option value="JAVA">Java程序员</option>
<option value="C++">C++程序员</option>
<option value=".NET">.NET程序员</option>
</select>
</body>
</html>
相关文章推荐
- html+css 单独给某一表格定义样式
- //这里为什么定义个display()全局函数,作为舞台,让对象唱戏,不能直接把他们放在主函数里面吗,这样写好处在哪,两者区别在哪?????
- angularjs-ui插件ui-select和html的select注意事项及区别
- 如何定义Select下拉框的边框颜色和滚动条样式
- 用CSS改变表格边框样式,很实用的一种方法。[转]
- 注意C#与C++的数组定义区别
- html实线边框的表格样式定义
- C++学习笔记-类定义的注意事项和C#的区别
- 子函数中定义静态类的对象(还不错哦)(注意区别,析构与构造在子函数中的行为)
- Latex tabular和tabular* 注意表格样式参数命令
- try catch放在循环内外的区别
- css定义select样式
- 有没有一种写法,可以分别定义全站input分别对应type="text",type="submit",type="chekbox"....等等的样式呢?
- 推荐一篇利用th,colgroup,col定义表格样式
- 比较完整的CSS定义表格样式
- 屏蔽选择的样式定义:-moz-user-select
- CSS定义表格样式
- css定义表格样式
- 比较完整的CSS定义表格样式
- C++:为什么inline函数的定义要放在头文件里 + inline和宏定义的区别(暂未体会到)