改变按钮的背景色,在css中应该怎么写??? <input type="button" text="click me" onmouseover="this.runtimeStyle.backgroundColor=red" onmouseout="this.runtimeStyle.backgroundColor=''"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我是问在CSS文件中该怎么写?? 我是问在CSS文件中该怎么写??>>寫不了 好象用htc能实现啊!有谁用过? 下面是用HTC实现的:htc 文件内容://////////////////////////// file name : c.htm////////////////////////<public:component><public:attach event="onmouseover" onevent="m_over()" /><public:attach event="onmouseout" onevent="m_out()" /><script language="jscript">function m_over(){ element.runtimeStyle.backgroundColor = "yellow";}function m_out(){ element.runtimeStyle.backgroundColor = "";}</script></public:component>下面是个 html 文件的内容:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><style type="text/css">.b{ behavior:url(c.htc);}</style></HEAD><BODY><input type="button" value="click me" class="b"></BODY></HTML>把两个文件保存在同一个目录下面。 找不到content控件啊! 正则续:c#提取标签里某个及所有属性 .NET安装部署 问一个采集问题 学.net里面的winform程序有什么比较好的书或者网站可以看看阿? 将数据导出到Excel时出错。应如何设置我的电脑呢 我被一个label欺负啊,大侠救我 WinForm 中使用 dsoframer 操作Excel 的问题 请高手赐教:如何将C/S模式的应用程序移植到网上? 请问高手如何做一个网络视频播放器 请求《深入剖析ASP.NET 组件设计(含光盘)》电子版或光盘代码 怎么判别一个表里的记录全部为空(没有值)?
>>寫不了
/////////////////////////
/// file name : c.htm
////////////////////////
<public:component>
<public:attach event="onmouseover" onevent="m_over()" />
<public:attach event="onmouseout" onevent="m_out()" /><script language="jscript">
function m_over()
{
element.runtimeStyle.backgroundColor = "yellow";
}function m_out()
{
element.runtimeStyle.backgroundColor = "";
}
</script>
</public:component>下面是个 html 文件的内容:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style type="text/css">
.b
{
behavior:url(c.htc);
}
</style>
</HEAD><BODY>
<input type="button" value="click me" class="b">
</BODY>
</HTML>把两个文件保存在同一个目录下面。