Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.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 - Fatal编程技术网

Twitter bootstrap 如何防止推特引导表单元格溢出

Twitter bootstrap 如何防止推特引导表单元格溢出,twitter-bootstrap,Twitter Bootstrap,我正在使用Twitter引导表。我将图像插入表格单元格。但是,当我更改浏览器宽度时,图像宽度也会相应更改。我希望图像始终保持原始宽度和高度。我该怎么做呢?您似乎正在使用引导版本2.x.x。如果是,请设置max width:none,以避免在表格中调整图像大小 .table td img { max-width:none; } 查看它使用的max width:none和之间的差异 在Bootstrap3中,您必须对图像使用img responsive类来获得响应行为

我正在使用Twitter引导表。我将图像插入表格单元格。但是,当我更改浏览器宽度时,图像宽度也会相应更改。我希望图像始终保持原始宽度和高度。我该怎么做呢?

您似乎正在使用引导版本2.x.x。如果是,请设置
max width:none
,以避免在表格中调整图像大小

.table td img {
   max-width:none;
 }
查看它使用的
max width:none
和之间的差异

在Bootstrap3中,您必须对图像使用
img responsive
类来获得响应行为