【问题标题】:Bootstrap - class text-center is not working on inner div [duplicate]Bootstrap - 类文本中心不适用于内部 div [重复]
【发布时间】:2018-12-10 11:08:52
【问题描述】:

我正在尝试在我的谷歌验证码上应用文本中心类的引导程序。它不工作。这是我的代码。

<div class="text-center"><div class="g-recaptcha" data-sitekey="<?php echo get_option('recaptcha_site_key'); ?>"></div></div>

是不是因为谷歌验证码或其他问题而无法正常工作。对于所有其他,或它的工作原理。

大多数答案都是我必须添加此代码

style="width: 78%; margin: 0 auto; display: block;"

实际上这有效,但它不是响应式解决方案。请提供响应式解决方案。

【问题讨论】:

  • 什么版本的引导程序?并显示更多代码我的意思是如果你将这个 div 包装在 row 或其他东西中?

标签: css twitter-bootstrap


【解决方案1】:

【讨论】:

  • 它是引导类吗??
  • 不,它没有用。
  • 这里有一些小的解决方法:
    xx
  • 不,它没有用。
  • 看来你的其他样式可能会覆盖bootstrap的css
猜你喜欢
  • 1970-01-01
  • 2014-11-13
  • 2013-06-15
  • 2018-03-29
  • 2018-08-19
  • 1970-01-01
  • 2019-02-09
  • 2015-10-22
  • 1970-01-01
相关资源
最近更新 更多