暂且不管你的代码中其他问题,单单
document.form1.linkman.bgcolor="red"
就是一句语法上正确,实际却无用的语句,既然是立体的文本框,那么其背景色肯定无法透视过来
因此,如果你想让你的文本框有背景色还是先将其改为平面的文本框吧;
提供一例:
<style>
.inputtype
{
BORDER-RIGHT: navy 1px solid;
BORDER-TOP: navy 1px solid;
BORDER-LEFT: navy 1px solid;
BORDER-BOTTOM: navy 1px solid;
LINE-HEIGHT: normal;
BACKGROUND-COLOR: red;
TEXT-ALIGN: center
}
document.form1.linkman.bgcolor="red"
就是一句语法上正确,实际却无用的语句,既然是立体的文本框,那么其背景色肯定无法透视过来
因此,如果你想让你的文本框有背景色还是先将其改为平面的文本框吧;
提供一例:
<style>
.inputtype
{
BORDER-RIGHT: navy 1px solid;
BORDER-TOP: navy 1px solid;
BORDER-LEFT: navy 1px solid;
BORDER-BOTTOM: navy 1px solid;
LINE-HEIGHT: normal;
BACKGROUND-COLOR: red;
TEXT-ALIGN: center
}
解决方案 »
- 一个最白痴的JQUERY小网页,哪位大侠能帮我注释一下,共10来句
- JS相册一些代码不太明白
- 这种广告切换怎么弄?FLASH和Javascript结合。有1、2、3、4……这些连接的。
- 页面刷新--怎么不起作用?<代码>
- 问下var arr=new Array()和 var arr=[] 的区别。
- jquery easyui在IE6下不兼容的问题
- 如何通过点击文本输入框显示层
- 很简单的问题,偶就是不懂
- 为什么这段程序在网上和在本面上有这么大的差别?只要找出问题,奸绝给分
- 请教各位大神一个问题
- 在MAC苹果机上为什么运行JAVASCRIPT程序总是出错?十万火急!
- 寻错--谁能帮我找一下错误???急急
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function check(){
document.all.a1.style.width="200"
document.all.a1.style.backgroundColor="#ff0000"
}
// -->
</script>
</head><body bgcolor="#FFFFFF" text="#000000">
<p><a href="#" onmouseover="ch2()">鼠标移动到这里看效果!!</a></p>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" value="radiobutton">
<input type="radio" name="radiobutton" value="radiobutton" onfocus="check()">
<input type="text" id="a1" value="" style="position:absolute; width:200px; height:115px; z-index:1; background-color: #0099FF;">
</form>
</body>
</html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function check(){
document.all.a1.style.width="200"
document.all.a1.style.backgroundColor="#ff0000"
}
// -->
</script>
</head><body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" value="radiobutton">
<input type="radio" name="radiobutton" value="radiobutton" onfocus="check()">
<input type="text" id="a1" value="" style="position:absolute; width:200px; height:115px; z-index:1; background-color: #0099FF;">
</form>
</body>
</html>