简体   繁体   English

增加Cycle2叠加层的字体大小

[英]Increase font size of Cycle2 overlay

I am trying to increase the size of the overlay in cycle2. 我正在尝试在cycle2中增加叠加层的大小。 However I only want to increase the title and not the description. 但是我只想增加标题而不是描述。

Is it possible to target just the data-cycle-title and can this be doen using just css? 是否可以仅以数据循环标题为目标,并且可以仅使用CSS做到这一点?

<div class="cycle-slideshow" data-cycle-swipe=true data-cycle-swipe-fx=scrollHorz data-cycle-speed="200" data-cycle-auto-height="1" data-cycle-loader="wait">
    <div class="cycle-prev"></div>
    <div class="cycle-next"></div>
    <div class="cycle-overlay"></div>
    <img src="theme/content/large.jpg" data-cycle-title="NEW CAR COMING SOON" data-cycle-desc="Pre Order now for £1000 off">
</div>

发现它正在为每个位创建单独的div,因此我使用了此CSS,将n替换为div的编号。

.cycle-overlay > div:nth-of-type(n)

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

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