请高手帮域霸?

fjone 2001-01-08 08:46:00
域霸www.fjone.com是用dreamweaver作的,用css可以控制table, hr等元素,但用css控制library和javascript不行?
...全文
99 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
feijunjun 2001-01-14
  • 打赏
  • 举报
回复
搞错了对不起!
<style type="text/css">
.t1 { font-family:宋体; font-size:9pt; border-width:1pt; background-color:#FFFFCC }
.b1 { font-family:宋体; font-size:9pt; width:50; height:24; background-color:#223300; color:#FFFFFF }
<script language=javascript>
<!--
function retclick(){
alert("你输入了:" + ex.inputed.value )
}
//-->
</style>

要改为

<style type="text/css">
.t1 { font-family:宋体; font-size:9pt; border-width:1pt; background-color:#FFFFCC }
.b1 { font-family:宋体; font-size:9pt; width:50; height:24; background-color:#223300; color:#FFFFFF }
</style>
<script language=javascript>
<!--
function retclick(){
alert("你输入了:" + ex.inputed.value )
}
//-->
</script>
feijunjun 2001-01-14
  • 打赏
  • 举报
回复
<input type=button name=ret class=b1 value="按这里" onclick="javascript:retclick()">

改为

<input type=button name=ret class=b1 value="按这里" onclick="retclick()">
feijunjun 2001-01-14
  • 打赏
  • 举报
回复
css 是样式表
可以设置网页上可用元件的样式
用法:
<html>
<head>
<title>abc</title>
<style type="text/css">
.t1 { font-family:宋体; font-size:9pt; border-width:1pt; background-color:#FFFFCC }
.b1 { font-family:宋体; font-size:9pt; width:50; height:24; background-color:#223300; color:#FFFFFF }
<script language=javascript>
<!--
function retclick(){
alert("你输入了:" + ex.inputed.value )
}
//-->
</style>
<body bgcolor=#221111>
<form name=ex>
<hr size=1 color=#CCEEFF>
<font face=宋体 style="font-size:9pt" color=#FF3333>请输入:</font>
<input type=text size=10 class=t1 name=inputed>
<br>
<input type=button name=ret class=b1 value="按这里" onclick="javascript:retclick()">
<hr size=3 color=white>
</form>
</body>
</head>
把上面的代码放到一个网页文件里吧试试有什么效果?
feijunjun 2001-01-14
  • 打赏
  • 举报
回复
你说的我一点也不懂?! 我也是用Dreamweaver做网页的,说清楚一些吧

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧