Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 是否存在受最大宽度或最大高度约束的 IMG 的 CSS 选择器?
在我的页面中,我有一些不同大小的图像。 所有图像都没有类或 id 属性。
我想要做:
如果图像大于 680px,其边框颜色为#aaa
如果图片小于100px,则无边框;
ETC..
有没有办法做到这一点?是否有任何伪或选择器?
提前致谢。