当前位置:编程学习 > html/css >>

* html select {…}这个css hack写在哪里的?我把它复制在了css文件里面,怎么ie6还是不能识别select

<html> <head> <style type="text/css"> * html select {…} </style> </head> </body> <select name="select2"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select> </body> </html>
补充:怎么就没人帮我解答这个问题啊?急急急啊??
追问:其它浏览器都还是可以显示的.但IE6还是不行啊???index页面:
general.css:

body{text-align:center; background-color:#fff;}
div{text-align:center;}
body,td,input,select,textarea,p,ul{margin:0; padding:0;}
body,td,input,select,textarea,p {font-size:12px;}
td,input,select,textarea,p{ line-height:18px;}
ul{list-style-type:none;}
*select{}我没定义.要这样子吗?*select {se}
</body>
可是这边要怎么写:<select name="select2">
				<option>1</option>
				<option>2</option>
				<option>3</option>
				<option>4</option>
			</select>
</body>定义的是<select name="select2">
				<option>1</option>
				<option>2</option>
				<option>3</option>
				<option>4</option>
			</select>
这段代码.链接CSS文件的代码 我在自己电脑上是有的.也不行啊好像是我电脑的问题.同样的东东,同样的软件,别人那测试可以的.而我这确不行啊
答案:<html>
<head>
<style type="text/css">
form{...}
select {…}
</style>
</head>
</body>

你这样写
<form>
<select name="select2">
				<option>1</option>
				<option>2</option>
				<option>3</option>
				<option>4</option>
			</select>
</form>
</body>
</html>
其他:*select {…}
你写成这样试试。 你的* html select {…}定义的是哪段代码?还有就是我在这段html的代码中,里面根本没有看到链接CSS文件的代码 <select name="select2">中的name改为 class。
* html  select {…} 改为  .select {…} 

上一个:想学会div+css想学会难吗?迷茫啊!
下一个:css 我想定义某一特定id的链接css样式 但不能影响其他的 怎么写?

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,