css - 如何在手机中隐藏箭头
问题描述
请检查:https ://iconsmgmt.com/project/miguel-ferrero/
如果您在移动版本中看到,箭头固定在图像上。箭头如何仅在光标在照片中时出现,就像桌面版本一样。我使用wordpress/divi。
CSS 专家可以帮助我。谢谢。
解决方案
在移动版本中为了更好的用户体验,箭头应该默认出现。但是如果你想让箭头表现得像桌面,你应该这样做:在你有这些代码的 css 文件中,你应该从它们中省略“opacity:1”。
@media all and (max-width:767px) {
.et_mobile_device .et-pb-arrow-prev {
left: 0;
opacity:1; // omit this line
}
.et_mobile_device .et-pb-arrow-next {
right: 0;
opacity: 1; // omit this line
}
}
和这个:
.et_mobile_device .et-pb-arrow-prev {
left: 22px;
opacity:1; // omit this line
}
.et_mobile_device .et-pb-arrow-next {
right: 22px;
opacity: 1; // omit this line
}
推荐阅读
- python - RSeQC clipping_profiles 上的 multiqc
- python - 如何处理 python 脚本错误并通过电子邮件发送
- javascript - 当价格低于 X 时,Javascript Array 删除元素
- memory - 为什么im2col用GEMM的方法比CNN中用SIMD的direction实现方法效率更高
- hyperledger-composer - 如何将 Hyperledger composer 应用程序部署到 IBM 云入门计划
- c# - 如何在html敏捷包中使用祖先xpath获取父节点
- python - Why can't the three planets(turtles) be drawn at the same time?
- javascript - 传单 - 标记上的中心地图,缩放和打开弹出窗口
- java - 如何避免在 Web 应用程序中硬编码字符串
- node.js - nodejs,基本问题:这是什么语法?