LinkedIn follow button not transparent

眉间皱痕 提交于 2019-12-11 13:11:06

问题


I have a LinkedIn button on my website on top of a dark background, but the corners of the rounded LinkedIn button are white making it square looking. Is there anyway to make it transparent?

<li class="item-3">
<script src="//platform.linkedin.com/in.js"
type="text/javascript">
lang: en_US
</script>

I have tried background-color: transparent; in CSS but nothing happens. Adding background-color: white; makes a big white box around the whole LinkedIn button, so I assume transparent does work, but just not where I want it to.


回答1:


Support from linkedin is laughable... I've contacted them re this issue. They refuse to acknowledge it. And have instead pointed me here: LinkedIn Homepage Redesign

This does not resolve the issue (obviously).

The style cannot be overwritten using css. I am going to remove the follow button, as this is the only available option. Great job LinkedIn...




回答2:


This is an issue that can be reproduced on LinkedIn's own Plugin Generator Page by changing the background color of the #widget element.

The culprit is this code on LinkedIn's server:

.framed #body .wrapper {
  position: relative;
  background: #fff;
}

Since this code is on another domain you cannot override it with your own CSS or JavaScript. (See here for example.)

Update 2015-06-19: LinkedIn has fixed the issue.



来源:https://stackoverflow.com/questions/28364124/linkedin-follow-button-not-transparent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!