Change Linkedin Company Profile plugin Width

為{幸葍}努か 提交于 2019-12-13 11:59:40

问题


I have been trying to figure out how to change the size of the Linkedin Company Profile width which we can create here. They will give you two script tag which will create the widget for you in your site. Nothing else. So you have no control over your css.

I had been struggling for days and finally figured it out. I tried to add inline styling on the site even with the !important tag but it still took the styles from the linkedin.css. I tried styling it every possible way but didn't work.

Since SO allows to share knowledge as Q&A format I thought of sharing this. Please see the answer below.


回答1:


Here's an example of how to provide the width to a plugin:

<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/xxx" data-format="inline" data-width="400"></script>

You can add a data-width="400" attribute to the script tag. That's all.



来源:https://stackoverflow.com/questions/14868355/change-linkedin-company-profile-plugin-width

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