<input type="button" style="new style">
解决方案 »
- JavaScript如何识别中文和空格,急求,小女不够专业多多帮忙....
- 下拉列表 用js显示某行 怎么做急问!!!!!!!!!!!
- 如何FireFox下实现IE的showModalDialog的功能?
- 求DHTML方面比较权威的书名,电子书也行
- ·如何屏蔽浏览器默认状态下的图片拖拽保存?
- 如何获得form引用
- 怎样用JSP或JavaScript获取客户端浏览器的语言设置?
- javascript初级问题
- 我没有学过JavaScript,它就是Java语言吗?它能做什么?我以前是学DELPHI,现在想做一个网站,要有数据库,希望各位高手提提意见。
- 百度发明的神代码。菜鸟表示很无奈。求大神小神来帮忙。谢谢 // 百度地图API功能 从上地到西单驾车需要 的行车时间 表示读不懂 求翻译神
- 高手都进来,一个看似easy而又不easy的问题.
- 好多问题!散分!
input[type="text"]{background-color:red}
就可以了。但我试了没用.
<html>
<style>
input[type='button']{background-color:red}
#dde{background-color:blue}</style>
<body>
<input type=button name=1 value=11111111 id=edd>
<input type=text name=2 id=dde>
<script>
</script>
</body>
</html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<STYLE TYPE="text/css" TITLE="">
<!--
#text{
border:1 solid #3399ff;
font:9pt;
color:#3399ff;
}
-->
</STYLE>
</head><body>
<input type="text" id="text">
<input type="reset">
<input type="password">
<input type="hidden">
<input type="submit">
<input type="button"></body>
</html>
在css里用#号声明的样式引用的时候用id=,而用.号声明的样式引用的时候用class=,没有用任何符号声明的样式将自动被继承在所有使用这个标签的htm体上
css应该升级了!
在css表中设定
<input type=button class="s01" value="">