Bootstrap 3.3.7 hidden-xs无效

时间:2017-12-09 18:34:56

标签: javascript jquery html css twitter-bootstrap

                <div class="col-md-6 hidden-xm hidden-sm">
                <div class="col-md-12 hidden-xm"><h3>ההזמנה שלך</h3></div>
                <div class="col-md-12 hidden-xm">
                    <div class="table-responsive hidden-xm">
                        <table class="table table-default">
                            <thead>
                                <tr>
                                    <th class="text-right">סה"כ</th>
                                    <th class="text-right">מוצר</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                    $totalPrice = 0;
                                    $arr = [];
                                    foreach($_SESSION['cart'] as $product){
                                        $productDetails = get_product($product['id']);
                                        array_push($arr,$product['amount']." x".$productDetails->get_name());
                                        $totalPrice+= $productDetails->get_price()*$product['amount'];
                                ?>
                                <tr>
                                    <td class="text-right"> <?php echo $productDetails->get_price()*$product['amount']; ?>$</td>
                                    <td class="text-right"><?php echo $productDetails->get_name()." <b>".$product['amount']."x</b>"; ?></td>
                                </tr>
                                <?php };?>
                                <tr>
                                    <td class="total_price">משלוח</td>
                                    <td>9$</td>
                                </tr>
                                <tr>
                                    <td class="text-right total_price">סה"כ</td>
                                    <td class="text-right"> <?php echo $totalPrice+9 ?>$</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="col-md-12 hidden-xm text-right"> אחריות מלאה על המוצרים ל-28 יום</div>
                    <input type="hidden" name="products" value="<?php echo implode("<br>",$arr) ?>">
                    <div class="text-left">
                        <input type="submit" name="submit" class="btn btn-lg btn-pay" value="שליחת הזמנה">
                    </div>
                </div>
            </div>

我已经尝试了很长时间才找出为什么:hidden-xm / hidden-sm不适合我。谁能告诉我我做错了什么?

我也想注意这个div在一个更大的容器里面,但我想隐藏它,如果它在移动的角度来看。

1 个答案:

答案 0 :(得分:0)

我是hidden-xs而不是hidden-xm