所有版块
≡ 澳洲生活区 ≡
生活百科
安家乐居
家有儿女
美食天地
开心购物
车行天下
工作学习
投资创业
税务理财
英语交流
签证登陆
签证申请
登陆前后
澳洲同城
悉尼
墨尔本
珀斯
布里斯班
堪培拉
阿德莱德
兴趣爱好
旅游户外
音乐影视
我爱摄影
数码天地
其他爱好
墨友书屋
≡ 信息交流区 ≡
情感天空
心情感悟
男人靠边站
征婚交友
邻居同人
小编精选
≡ 站务区 ≡
家园建设
广告服务
招聘求职
商业服务
私人广告
最近浏览
我的收藏
您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册
使用道具 举报
周星星1832 发表于 3-10-2014 07:39 should use css.not js
DDD888 发表于 3-10-2014 07:44 I don't understand what you said. Show me the code of css. My text is dynamic. It will change ...
周星星1832 发表于 3-10-2014 08:33 long story short, make that dame a element a fixed with and block element
DDD888 发表于 3-10-2014 09:00 If the text is long, will the element change width based on the text length?
mason00 发表于 3-10-2014 08:47 http://www.w3schools.com/cssref/pr_text_white-space.asp nowrap咯,拿text的长度算不准的,你要知道 ...
DDD888 发表于 3-10-2014 09:02 不能换行,我知道字号,我设置字号啦 我现在是随便假设字符宽度是18,但我想得到个通用的算法
mason00 发表于 3-10-2014 09:40 nowrap就是不换行呀,你的目的就是别换行对伐啦
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|FreeOZ论坛
GMT+10, 24-9-2025 04:00 , Processed in 0.042814 second(s), 28 queries , Gzip On, Redis On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.