线性渐变颜色是否可以在所有浏览器中使用?我遇到的问题是,线性渐变色(黑色和灰色)在Outlook和gmail中可以正常工作,但在网络邮件和移动设备中无法正常工作。如何摆脱这个问题?谢谢
答案 0 :(得分:-1)
这取决于您如何编写CSS。最好提供所有浏览器前缀,以便它能在所有浏览器上正常工作。例如这样的
Long startTimestamp=Instant.now().minus (10, ChronoUnit.MINUTES ).toEpochMilli();
Map<TopicPartition, Long> timestampsToSearch = new HashMap<>();
for (TopicPartition partition : partitions) {
timestampsToSearch.put(partition, startTimestamp);
}
Map<TopicPartition, OffsetAndTimestamp> outOffsets = consumer.offsetsForTimes(timestampsToSearch);
for (TopicPartition partition : partitions) {
Long seekOffset = outOffsets.get(partition).offset();
consumer.seek(partition, seekOffset);
对于低于IE10的Internet Explorer版本,您应该像这样使用它:
background-image: -webkit-linear-gradient(right, #0c93C0, #FFF);
background-image: -moz-linear-gradient(right, #0c93C0, #FFF);
background-image: -ms-linear-gradient(right, #0c93C0, #FFF);
background-image: -o-linear-gradient(right, #0c93C0, #FFF);
background-image: linear-gradient(right, #0c93C0, #FFF);
另外,在使用它之前,我建议您使用以下命令查看它是否在不同的浏览器版本中兼容:https://caniuse.com/#search=linear-gradient