流畅的 Facebook“点赞”按钮?
我的网站上有一个 facebook“喜欢”按钮,我想让它变得流体,因为它所在的容器是流体,当容器小于按钮时就会溢出。我想保持文本和按钮相同的大小,id 只是想让溢出的文本中断到下一行...谷歌搜索中有很多结果可以自定义此内容,但我还没有找到任何可以将根据流体宽度进行换行。谢谢!
I have a facebook "like" button on my website, I'd like to make it fluid as the container it is in is fluid and when the container is smaller than the button there is an overflow. I'd like to keep the text and buttons the same size, id just like to have the overflowing text break off to the next line... there is plenty of results in a google search for customizing this, but I havent found anything that will do line breaks according to a fluid width. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许我不明白你在做什么,但文本换行应该自动发生,如下所示:
你可以更改包装器 div 的宽度,Like 文本将根据需要换行。
XFBML 的工作方式不同,但您可以通过固定宽度来截断文本:
Perhaps I'm not understanding what you're after, but text wrapping should happen automatically with something like this:
You can change the width of the wrapper div and the Like text will wrap as needed.
The XFBML doesn't work the same way, but you can cut off the text by fixing a width: