Recently I know that CSS has such a side of the fried Sky ~ ~ ~
Do a similar forum page, the user avatar 70px, but the user name can not be limited ah, English, Chinese, you say he would like to take a "my name is good, how do you do it", that swaiiow not the egg pain chrysanthemum tight ~ ~
Fortunately, swaiiow in the unfortunate fortunately found the CSS so the side of the fried sky, never know, write to share to everyone
Very simple, big fart not more put, directly open chrysanthemum:
CSS inside the following settings:
a.name{line-height:30px;text-align:center;text-overflow:ellipsis;//let out the use of ... Implement white-space:nowrap;//suppress line break overflow:hidden;//out of hidden Display:block;}
I write the user name with a tag, so I want to display:block it.
Well, it's simple, but it works.
(PS: ie6! not supported )
If you have any advice, please add qq:1740437