- 博客(2)
- 收藏
- 关注
原创 页面输出文本超过指定长度后省略...
text 定义div的css:.str{width:100px;/*首先声明指定的长度值*/overflow:hidden;/*设置如果超过指定长度后隐藏*/white-space:nowrap;/*指定文本不换行显示*/text-overflow:ellipsis;/*指定显示省略标志...*/}
2007-01-25 10:39:00
554
原创 javascript的面向对象
方法一:function user(){}user.prototype.name = "保密";user.prototype.age = "保密";user.prototype.shout = function (){return "你们好,我的朋友!";}user.prototype.produce = function (){return "我的名字:"+new user().name +
2007-01-22 13:07:00
515
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人