更改Linkedin公司简介插件宽度 [英] Change Linkedin Company Profile plugin Width

查看:146
本文介绍了更改Linkedin公司简介插件宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图找出如何更改Linkedin公司资料宽度的大小,我们可以在此创建此处。他们会给你两个脚本标签,将在您的网站为您创建的小部件。没有其他的。所以你不能控制你的CSS。

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.

我一直在努力的天,终于弄清楚了。我尝试在网站上添加内联样式,即使使用!important 标记,但它仍然从 linkedin.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.

因为SO允许以Q& A格式共享知识,我想分享这个。请参阅下面的答案。

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

推荐答案

以下是如何为插件提供宽度的示例:

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>

您可以添加 data-width =400属性到脚本标记。就这样。

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

这篇关于更改Linkedin公司简介插件宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆