Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.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
Css 用于引导中高度的列md、列xs_Css_Twitter Bootstrap_Less - Fatal编程技术网

Css 用于引导中高度的列md、列xs

Css 用于引导中高度的列md、列xs,css,twitter-bootstrap,less,Css,Twitter Bootstrap,Less,我想知道是否有一种方法可以为我的一个CSS类的height属性模拟col md,col xs。我知道我必须在CSS中使用更少的内容,但我无法让它正常工作 在本例中,如果屏幕是移动电话(768px),我希望高度为10px。我是否必须以某种方式编译更少的代码 .master-body { border: 1px solid #bdc3c7; background-image: url(../../ressources/noise_lines.png); background-

我想知道是否有一种方法可以为我的一个CSS类的height属性模拟col md,col xs。我知道我必须在CSS中使用更少的内容,但我无法让它正常工作

在本例中,如果屏幕是移动电话(768px),我希望高度为10px。我是否必须以某种方式编译更少的代码

.master-body {
    border: 1px solid #bdc3c7;
    background-image: url(../../ressources/noise_lines.png);
    background-repeat: repeat;
    height: 75vh;
    overflow: auto;
}

@media (min-width: 768px) {
    .master-body {
        height: 10px;
    }
}

min width
更改为
max width
以所有小型设备为目标