对齐社交媒体共享按钮,使其看起来更美观
我刚刚将社交共享按钮放回我的主页,它们放在一起看起来真的很糟糕:)
您可以在页面底部查看它:http://www.comehike.com
人们通常如何让它们如此自然地融合在一起?我的看起来很混乱而且不专业。造型方面有什么可以做的吗?
谢谢!
I just put back the social sharing buttons to my home page and they look really terrible together :)
You can take a look at it here on the bottom of the page: http://www.comehike.com
How do people usually make them fit so natural together? Mine look so disordered and unprofessional. Is there anything that can be done with styling?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看您的代码,您可能必须向每个类添加单独的类,因为它们都位于不同的元素中。有几种方法,绝对定位,显示:内联,但我建议浮动
添加一个 ul 元素,并将每个“共享按钮”作为该 ul 的 li 子元素
,然后你的 css 看起来像这样,
你显然可以编辑css随你所愿,要点是 float: left the Overflow: auto; ul 上修复了没有实际高度的浮动元素。
Looking at your code you'll likely have to add individual classes to each one, as they are all in different elements. There are a few approaches, absolute positioning, display:inline but I'd recommend floats
add a ul element and each of your 'share buttons' as an li child element of that ul
then your css can look something like this
you can obviously edit the css how ever you wish, the main point is the float: left the overflow: auto; on the ul is a fix for the floated elements not having a real height.