[英]Zepto greater than selector
Is it possible to do something like this in Zepto for selecting elements greater or less than an index: 是否可以在Zepto中执行以下操作来选择大于或小于索引的元素:
$( "td:gt(4)" ).css( "backgroundColor", "yellow" );
$( "td:gt(-2)" ).css( "color", "red" );
as on https://api.jquery.com/gt-selector/ 如https://api.jquery.com/gt-selector/
Short answer: No 简短答案:否
Longer answer: According to zepto js JQuery CSS extensions are not supported . 更长的答案:根据zepto js ,不支持JQuery CSS扩展 。 Zepto has some CSS extended selectors ( github ) but that also does not support the functionality that you are looking for.
Zepto具有一些CSS扩展选择器( github ),但它也不支持您正在寻找的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.