简体   繁体   English

“ amp-fit-text”中的“ min-font-size”属性在“ amp-list”块内不起作用

[英]The 'min-font-size' attribute in 'amp-fit-text' doesn't works inside an 'amp-list' block

I have an amp-list which has some items. 我有一个amp-list ,里面有一些物品。 The text within these items, sometimes exceed the item height. 这些项目中的文本有时超过项目的高度。 To solve this, I'm using the component amp-fit-text . 为了解决这个问题,我使用了amp-fit-text组件。

This component increase or decrease the font-size , then, the text fits in the container. 该组件增加或减小font-size ,然后将文本放入容器中。 But this component can do an ellipsis, if I define a min font size. 但是,如果我定义了最小字体大小,则此组件可以省略号。 Works fine outside the amp-list , but the min-font-size attribute is not being followed. amp-list之外可以正常工作,但是未遵循min-font-size属性。 In this case, the text is being fitted in the content, rather than use the min font size and creates an ellipsis. 在这种情况下,文本将适合内容,而不是使用最小字体大小并创建省略号。

I created a fiddle to show both examples: https://jsfiddle.net/po5mwLka/2/ 我创建了一个小提琴以显示两个示例: https : //jsfiddle.net/po5mwLka/2/

这看起来像个错误,请您在此处提出问题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM