Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.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 为什么赢了';t我的按钮中心在引导中_Css_Twitter Bootstrap_Button - Fatal编程技术网

Css 为什么赢了';t我的按钮中心在引导中

Css 为什么赢了';t我的按钮中心在引导中,css,twitter-bootstrap,button,Css,Twitter Bootstrap,Button,我试过几种选择。使用CSS将按钮居中放置在分区中的正确方法是什么?引导 HTML: 生成报价 需要确保a)按钮css设置为display:block;b) 按钮css左边距和右边距设置为自动。文本中心应该可以工作,但html格式不正确。class属性应该是class=“col-md-12文本中心”,但是您缺少= <div class"col-md-12 text-center"> <button type="button" class="btn btn-primary"&

我试过几种选择。使用CSS将按钮居中放置在分区中的正确方法是什么?引导

HTML:


生成报价

需要确保a)按钮css设置为display:block;b) 按钮css左边距和右边距设置为自动。
文本中心
应该可以工作,但html格式不正确。class属性应该是
class=“col-md-12文本中心”
,但是您缺少
=
<div class"col-md-12 text-center">
  <button type="button" class="btn btn-primary">Generate a Quote</button>
</div>