第一张图片是我所拥有的,第二张图片是我想要完成的结果。
到目前为止,我意识到禁用两个刻度(上图中)可以解决问题,但是如何编写 css 代码?
这是我当前用来根据自己的喜好调整小部件的代码。
span[data-pin-log="pinterest"] {
overflow: scroll;
overflow-x: hidden;
}
span[data-pin-log="embed_grid"]::-webkit-scrollbar {
width: 0; /* Remove scrollbar space */
background: transparent; /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
span[data-pin-log="embed_grid"]::-webkit-scrollbar-thumb {
background: #FF0000;
}
#pinterest [class$=_button] {
display: none !important;
}
#pinterest [class$=_button] {
display: none !important;
}
#pinterest [class$=_hd] {
display: none !important;
}
body > span[data-pin-log="embed_grid"] {
border: none;
}
如果有帮助的话,这个小部件就在这里。
我对 CSS 的了解非常有限,因此非常感谢您的帮助。预先感谢您:))
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号