<p align="left" style="cursor:hand;">手形</p>
这样文字了会变成手形的了,cursor之后参数还可以变成其它形状的,具体参数,可以参考有关CSS的语法。
------------------------------------------------
www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得
asp.net2.0资料
http://www.cndigs.com/search.php?search=asp.net%202.0&tag=true
asp.net资料
http://www.cndigs.com/search.php?search=asp.net&tag=true
ajax资料
http://www.cndigs.com/search.php?search=ajax&tag=true
这样文字了会变成手形的了,cursor之后参数还可以变成其它形状的,具体参数,可以参考有关CSS的语法。
------------------------------------------------
www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得
asp.net2.0资料
http://www.cndigs.com/search.php?search=asp.net%202.0&tag=true
asp.net资料
http://www.cndigs.com/search.php?search=asp.net&tag=true
ajax资料
http://www.cndigs.com/search.php?search=ajax&tag=true
解决方案 »
- input背景图片的变换
- 如果实现这样方法———document.getElementById("UserName").getValue();
- 在IE中调用javascript打开Excel
- 如何实现子窗口刷新父窗口?(急)
- 如何向iframe中的input传值
- javascript里的数字转换
- 如何精确计算给定字体,大小的一段字符串的屏幕宽度?
- 不同系统之间WEB页面的交互!
- 进来者每人壹分!
- js大神请进
- 急!!在线等!!鼠标移动事件:再动态生成talbe的tr 时,如何把鼠标的onmouseover和onmouseout事件加载进去
- 有谁愿意分析http://mixweb.cn/是怎么做的吗?
<tr>
<td width="100%" style="cursor:hand"><span width="50%" style="background-color:red;cursor:default">编号</span></td>
</tr>
</table>
<tr>
<td style="cursor:hand;align:center;width:95%"><span width="95%" style="background-color:red;cursor:default">编号</span></td>
</tr>
</table>
<span style="width:100%;height:100%;cursor:default"> </span>
</td>padding:2 指定TD边上留2像素宽度
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="ondocumentready" HANDLER="DoInit"/>
<PUBLIC:ATTACH EVENT="onmousedown" HANDLER="trTitle_MouseDown"/>
<PUBLIC:ATTACH EVENT="onmousemove" HANDLER="trTitle_MouseMove"/>
<PUBLIC:ATTACH EVENT="onmouseup" HANDLER="trTitle_MouseUp"/>
</COMPONENT>
<script language=javascript>
function DoInit()
{
create();
}
function create(){
var html="<table style =\"table-layout:fixed\" nowrap border=\"0\" cellspacing=\"1\" cellpadding=\"1\" borderColor =\"#ebebeb\"><Tbody><tr style='behavor:url=()'><td style=\"background-color:#ffffff;cursor:hand\">";
//var html="<table border=\"1\" width=\"100%\"><tr><td>";
html+="<span style=\"background-color:red;cursor:default\">编号";
html+="</span></td><td width='200'>AAAAAA</td><td>BBBBBB</td></tr></table>";
element.document.body.insertAdjacentHTML("afterBegin",html);
//alert(html);
}
</script>span的样式如下:
A.htm的代码如下:
<html>
<head>
<style>
span {
font-family: "宋体", "新宋体";
font-size: 9pt;
width:100%;
background-color:red;
height: 100%;
overflow: hidden;
cursor: default;
white-space: nowrap;
vertical-align: bottom;
padding-top: 4;
margin-right: 2px;
margin-left: 3px;
}
</style>
</head>
<body>
<table width=100%>
<tr style="behavor:url(../JS/Table.htc)">
<td><span width="100%">编号</span></td>
</tr>
</table>
</body>
</html>
问题是这样,页面加载后span不能填充所在的整个TD,宽度只有span中的文字宽度,怎样才能是span填充整个TD