Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 要根据图像大小更改的图像高度和宽度_Twitter Bootstrap_Css_Media Queries - Fatal编程技术网

Twitter bootstrap 要根据图像大小更改的图像高度和宽度

Twitter bootstrap 要根据图像大小更改的图像高度和宽度,twitter-bootstrap,css,media-queries,Twitter Bootstrap,Css,Media Queries,当图像大小为50x100时,我希望实现媒体查询。媒体查询希望图像高度为100px,宽度为100px,如果图像大小为100x50,则类似 图像高度-90px宽度-90px 我只知道媒体查询屏幕大小。如果可能,请建议修复我的项目 eg @media img-src (min-width:50px ) and (max-width:100px) { .imagediv { width: 100x; height: 100px; } } 你不考虑bootstrap?我熟悉bootstr

当图像大小为50x100时,我希望实现媒体查询。媒体查询希望图像高度为100px,宽度为100px,如果图像大小为100x50,则类似 图像高度-90px宽度-90px

我只知道媒体查询屏幕大小。如果可能,请建议修复我的项目

eg
@media img-src (min-width:50px ) and (max-width:100px) {
.imagediv {
    width: 100x;
    height: 100px;
} }

你不考虑bootstrap?我熟悉bootstrap。但我的意思是,我们的项目内置了应用程序。它的内置软件。我必须定制它。