`
xuan313
  • 浏览: 3049 次
  • 性别: Icon_minigender_2
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1.在背景上选用只有边框的星星做为背景  position: relative;//必须要有定位  height: 17px;  width: 30px;  background: url(../../../img/weike/start.png) no-repeat 0px 0px;2.在里面的div用带颜色的星星做背景,覆盖在外面的div上,并且限制宽度,这样会有一部分的没有颜色的星星露在外面  position: absolute;  top: 0px;  left: 0px;  display: inline-block;  height: 17px;  background: url ...
1.前提是只能给一行的文字加省略号 2.相应的代码   width:100px;   overflow: hidden;    white-space: nowrap;    text-overflow: ellipsis;
1.fire:执行符合匹配的 dom 节点的相应事件的事件处理器和默认行为. 2.在使用fire时需要在该对象的原型连上添加S.EventTarget   即:S.augment(blockLinkage,S.EventTarget,{       }); 3.然后是定义一个函数   即:that.fire('callBack'{           name:'name',           id:'id'       });   表示在这个方法中绑定一个名叫callBack的函数,其返回值为,包含name和id的对象
KISSY.add('common/blockLinkage',function(S,LinkageIO){ var $ = S.all, on = S.Event.on, fire = S.Event.fire, delegate                 = S.Event.delegate, el = { }'; function blockLinkage(param){ this.opts = S.merge(el,param); this.init(); } S.augment(blockLinkage,{ }); ret ...
FireFox,IE7,IE8,IE9支持,chrome不支持 table{   table-layout:fixed; } td{   word-break:keep-all;   overflow:hidden; }
Global site tag (gtag.js) - Google Analytics