应用IE6所不支持的CSS的type选择器

网站建设 2023-01-28 21:38www.1681989.com免费网站
应用IE6所不支持的CSS的type选择器,可以精确的选择各种表单元素。
简单,明了,可以分区出各个put控件形态。
type选择器,IE6之前的对web标准支持的不太好的浏览器不能支持。致命……

复制代码
代码如下:

<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml" >
<head>
<title>IE6所不支持的CSS的type选择器 - .52CSS.</title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
put[type="text"]
{
background-color:#FFC;
}
put[type="password"]
{
background-image:url(BG.gif);
}
put[type="submit"]
{
background-color:blue;
color:white;
}
put[type="reset"]
{
background-color:navy;
color:white;
}
put[type="radio"]
{
/In FF,Some radio style like background-color not been supported/
marg:10px;
}
put[type="checkbox"]
{
/In FF,Some checkbox style like background-color not been supported/
marg:10px;
}
put[type="button"]
{
background-color:lightblue;
}
</style>
</head>
<body>
<dl>
<dt>This is normal textbox:<dd><put type="text" name="">
<dt>This is password textbox:<dd><put type="password" name="">
<dt>This is submit button:<dd><put type="submit">
<dt>This is reset button:<dd><put type="reset">
<dt>This is radio:<dd><put type="radio" name="ground1"> <put type="radio" name="ground1">
<dt>This is checkbox:<dd><put type="checkbox" name="ground2"> <put type="checkbox" name="ground2">
<dt>This is normal button:<dd><put type="button" value="i'm button">
</dl>
</body>
</html>



Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by