css - Moodle 中的 Bootstrap 表

标签 css moodle bootstrap-table

您好,我目前正在为一个客户的 Moodle 站点工作。我们正在尝试在主页着陆页上获得响应表。我无法将整个 Bootstrap 框架复制到站点中,因为它与其他 Moodle 库冲突。我刚刚复制并粘贴了表格元素,从 bootstrap CSS 的 .container 开始,并将其添加到 Moodle 自定义 CSS 空间中。然后我添加了以下内容:

<div class="container">
  <div class="col-12 col-sm-12 col-lg-12">
        <div class="table-responsive">
              <table class="table">
                    <tbody>
                          <tr>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                     <a href="http://moodle.ranzco.edu/course/view.php?id=98" class="nounderlineyellow"><i class="fa fa-medkit" aria-hidden="true"></i></a><span style="font-size: x-large;"><br />Trainees</span>
                                </td>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                      <p><a href="http://moodle.ranzco.edu/course/view.php?id=102" class="nounderlineyellow"><i class="fa fa-user-md" aria-hidden="true"></i></a><br /><span style="font-size: x-large;">Term Supervisors Clinical Tutors</span></p>
                                </td>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                      <a href="http://moodle.ranzco.edu/course/view.php?id=101" class="nounderlineyellow"><i class="fa fa-graduation-cap" aria-hidden="true"></i></a><br /><span style="font-size: x-large;">Examiners</span>
                                </td>
                          </tr>
                          <tr>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                      <a href="http://moodle.ranzco.edu/course/view.php?id=97" class="nounderlineyellow"><i class="fa fa-eye" aria-hidden="true"></i></a><br /><span style="font-size: x-large;">Mentors</span>
                                </td>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                      <a href="http://moodle.ranzco.edu/course/view.php?id=100" class="nounderlineyellow"><i class="fa fa-users" aria-hidden="true"></i></a><br /><span style="font-size: x-large;">Fellows</span>
                                </td>
                                <td class="fhcell hvr-shutter-in-horizontal" style="text-align: center;">
                                      <a href="http://moodle.ranzco.edu/course/view.php?id=99" class="nounderlineyellow"><i class="fa fa-globe" aria-hidden="true"></i></a><br /><span style="font-size: x-large;">International Medical Graduates</span>
                                </td>
                          </tr>
                    </tbody>
              </table>
        </div>
  </div>

但它不起作用。任何帮助将非常感激。网站网址为 Moodle Site

最佳答案

你的第二行 <div class="col-12 col-sm-12 col-lg-12">应该是 <div class="col-md-12 col-sm-12 col-lg-12"> bootstrap 中没有 col-12。

您也可以 try here首先在此处引导表。

关于css - Moodle 中的 Bootstrap 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39226114/

相关文章:

javascript - Bootstrap 表条件显示/隐藏列

html - CSS3 背景弹出过渡

javascript - 如何修改iframe滚动条?

Mysql触发器更新插入的行

php - 当 nginx 和 db 在不同的服务器上时,db 查询出错? "PHP message: Database transaction aborted automatically in"

mysql - bootstrap表不显示数据

jquery-ui - Fullcalendar - 拖动时隐藏可拖动事件?

css - 如何在 MVC 上使用 Ajax Helper 创建切换按钮

javascript - 将javascript添加到moodle作业页面

html - Bootstrap-Table 过滤器大于/小于