Welcome to Delicate template
Header
Just another WordPress site
Header

css截取多余的字符用省略号代替

7月 8th, 2013 | Posted by 无 名 in css

用css来截取。

用两句代码来解决。
text-overflow:ellipsis; //这句是重点,表示用省略号来代替截取的部分。
white-space:nowrap; //这句表示字符不换行。
代码兼容ie6+ , 火狐, google chrome

You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.