如何自定义以“项目样式"呈现的图像大小;'内容查询Web部件中的“固定图像大小" [英] How to customise the image size rendered in Item Style;' Fixed Image Size' in a Content Query Web Part

查看:58
本文介绍了如何自定义以“项目样式"呈现的图像大小;'内容查询Web部件中的“固定图像大小"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Content Query Web部件在SP页面中汇总新闻.我正在使用项目样式; 固定图像尺寸",是否可以调整图像尺寸?我发现页面上显示的汇总图像太小.我打开了ItemStyle.xsl 文件,并注意到其引用CSS类'image-fixed-width'.我在哪里可以访问此CSS?这是最好的方法吗?还是有另一种方法可以实现这一目标?

I'm doing a roll-up news article in a SP page using the Content Query Web part. I'm using the Item Style; 'Fixed Image Size',  Is there a way to adjust the image size? I find the roll-up images shows up too small on my page. I opened up the ItemStyle.xsl file and noticed its referencing CSS Class 'image-fixed-width'. Where can i access this CSS? Would this be the best approach? Or is there another way of achieving this?

最好的问候,

拉奎尔

Raquel

推荐答案

嗨Raquel,

Hi Raquel,

要在内容样式为固定图像大小的内容查询Web部件中自定义图像大小,建议您在SharePoint Designer中修改ItemStyle.xsl文件.

To customize the image size in Content Query Web Part which Item Style is Fixed Image Size, I suggest you modify the ItemStyle.xsl file in SharePoint Designer.

检出ItemStyle.xsl文件->高级模式下的编辑文件->查找该行:< image class ="image-fixed-width" ... >

Check out the ItemStyle.xsl file->edit file in advanced mode->find out the row : <image class="image-fixed-width"...>

添加样式如下:

最后,签入此xsl文件并作为主要版本发布.

Finally, check in this xsl file and publish as a major version.

最诚挚的问候,


这篇关于如何自定义以“项目样式"呈现的图像大小;'内容查询Web部件中的“固定图像大小"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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