Css bootstrap中的媒体查询

Css bootstrap中的媒体查询,css,twitter-bootstrap,Css,Twitter Bootstrap,如果在bootstrap中桌面大小大于1200px,我想将图像宽度设置为350px 如果桌面大小大于992px,我可以这样做。但是当它小于1200px时,我不能做它 我试过类似这样的方法,但对我不起作用 @media (max-width: (@screen-lg - 1) and (max-width: (@screen-lg))) { > img { width: 350px; } } 注意:当屏幕尺寸大于992

如果在
bootstrap
中桌面大小大于1200px,我想将图像宽度设置为
350px

如果桌面大小大于992px,我可以这样做。但是当它小于1200px时,我不能做它

我试过类似这样的方法,但对我不起作用

    @media (max-width: (@screen-lg - 1) and (max-width: (@screen-lg))) {
        > img {
            width: 350px;
        }
    }
注意:
当屏幕尺寸大于992时,我需要将此宽度设置为我的图像。(含约1200像素)

有人能帮我吗


谢谢你

是的,我试过了,并且成功了

这是代码:

    @media (min-width: (@screen-md)) {
        > img {
            width: 400px;
        }
    }