避免title换行的问题
ztree吧
全部回复
仅看楼主
level 3
handmail 楼主
前面的+号就换行了。
本应:
+ 顶级目录
变成了:
+
顶级目录
2012年05月17日 08点05分 1
level 11
对比 Demo 比较 css 吧,肯定有样式冲突了
2012年05月17日 13点05分 2
level 3
handmail 楼主
只有在 外面的div宽度不够时,才会换行。请问这样正常吗? 有参数控制吗
2012年06月01日 08点06分 3
level 11
在 zTreeStryle.css 中
.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0}
其中 white-space:nowrap; 就是不让其进行换行的。 难道你没有使用 zTreeStyle.css? 还是有css 冲突了?
2012年06月02日 07点06分 4
假如我就是像要换行样式怎么弄? 我取消 white-space:nowrap;这个属性以后, 上面换行下来的文字就和下面的项文字重叠了. 不会占位呀.
2013年06月02日 02点06分
回复 blacksoul7 : 注意 inline-block , 另外 目前的 css 样式如果需要换行,请设置 showLine = false,否则 节点之间的连接线会不正常。
2013年06月02日 10点06分
level 1
zTreeStyle.css用了,但是就是不知道那一块冲突了
2014年07月01日 03点07分 5
用 chrome 的调试工具,检查!
2014年07月13日 09点07分
1