简体   繁体   English

如何告诉css_styled_content正确调整图像大小

[英]How to tell css_styled_content to properly resize images

I think I am experiencing this ages-old behaviour in a TYPO3 6.1 site http://forge.typo3.org/issues/15522 我认为我在TYPO3 6.1网站http://forge.typo3.org/issues/15522中遇到了这种古老的行为

As soon as there is more than one image in a textpic field, this TypoScript 一旦textpic字段中有多个图像,此TypoScript

tt_content.image.20.maxWInText = 300

will produce very small images - their size is the given rendering size divided by number of images. 将产生非常小的图像-它们的大小是给定的渲染大小除以图像数量。

So with three images in a textpic element, this will give me three 100px wide images. 因此,在textpic元素中包含三个图像时,这将为我提供三个100px宽的图像。

How can this be set to work normally (value 300 applied to each image?) 如何将其设置为正常工作(将值300应用于每个图像?)

EDIT: I'm posting the full config I've been using: 编辑:我发布了我一直在使用的完整配置:

imgWidth=CASE
imgWidth{
    key.field = header_layout
    default=TEXT
    default.value=1000
    1=TEXT
    1.value=1000
    2=TEXT
    2.value=500
    3=TEXT
    3.value=300
    4=TEXT
    4.value=500
    5=TEXT
    5.value=300
    6=TEXT
    6.value=500
    7=TEXT
    7.value=300
    8=TEXT
    8.value=0
    9=TEXT
    9.value=0
    10=TEXT
    10.value=150
    10=TEXT
    10.value=1000
}   

tt_content.image.20.maxWInText.cObject < imgWidth
tt_content.image.20.maxW.cObject < imgWidth

This setting is supposed to affect the width occupied by all images in a column. 假定此设置会影响一列中所有图像占用的宽度。 Therefore it must effect all images. 因此,它必须影响所有图像。

You should take a look at 你应该看看

tt_content.image.20.maxW

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在css_styled_content中的单击放大链接中添加图像标题 - How add image caption to click-enlarge link in css_styled_content 使用css_styled_content渲染时如何通过Typoscript隐藏插件标题 - How to hide a plugin's title via Typoscript when rendering with css_styled_content TYPO3 v8上具有css_styled_content的前端没有子标题 - No subheader on the frontend with css_styled_content on TYPO3 v8 编辑标题(标题级别)FLUID支持TYPO3 fluidcontent_core而不是CSS_Styled_Content - Edit headlines (header level) FLUID Powered TYPO3 fluidcontent_core instead of CSS_Styled_Content 如何修改css样式内容的特殊方面而不覆盖全局内容? - How to modify an special aspect of css styled content without overwriting it global? 如何在“点击放大模式”(css样式的内容)中避免超过原始图像尺寸的图像渲染 - How to avoid image rendering over original image size in “click-enlarge mode” (css-styled-content) Typo3 站点 package 没有正确包含流体样式内容? - Typo3 Site package not including fluid_styled_content properly? typo3 css_styled内容编辑源 - typo3 css_styled content edit source typo3 8.7图像调整大小无法正常工作 - typo3 8.7 images resize does not work properly 使用fluid_styled_content(TS)为gridelements col中的图像设置maxImageWidth - Set maxImageWidth for images within gridelements col using fluid_styled_content (TS)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM