Bootstrap轮播对齐到页面的中心

时间:2016-03-26 02:07:43

标签: css twitter-bootstrap

我有一个关于bootstrap carousel的代码,它工作得很好但是我想将它对齐在我的页面中心。我尝试了很多不同的解决方案,但仍无济于事。有没有办法将它与中心对齐

    $rsm = new ResultSetMapping;
    $rsm->addEntityResult('my_entity_user', 'u');
    // some $rsm->addFieldResult('u', 'column', 'field');
    // some $rsm->addScalarResult('column', 'alias');

    $sqlQuery = 'SELECT
        ... 
        FROM ...
        INNER JOIN ... ON ...
        INNER JOIN ... ON ...
        // some more join
        WHERE condition1
            AND condition2';
    // some conditions added depending on params passed to this function
    $sqlQuery .= '
            AND (fieldX = (subrequest1))
            AND (fieldY = (subrequest2))
            AND condition3
            AND condition4
        GROUP BY ...
        ORDER BY ...
        LIMIT :nbPerPage
        OFFSET :offset
        ';

    $query =
        $this->_em->createNativeQuery($sqlQuery, $rsm)
        // some ->setParameter('param', value)
        ;

    return $query->useResultCache(true, 300, "my_cache_id")->getArrayResult();

1 个答案:

答案 0 :(得分:1)

您可以使用<center>标记将其包围。