0

我不知道为什么我的照片在我的产品信息下的列中,我需要这些在一行中,我需要照片占该行的 60%,信息占 40%。

[图片供参考][1] https://i.stack.imgur.com/vMD7C.png

我更改了列,信息大小为 7,照片为 5,所以我切换了它们并做到了这一点,即使在我将它们切换回来后仍然存在。

                            <container name="product.inner" htmlTag="div" htmlClass="row">
                                <container name="product.info.media" htmlTag="div" htmlClass="product media product-img-box clearfix col-md-5 col-sm-5 col-xs-12" before="product.info.main" />
                                <container name="product.info.main" htmlTag="div" htmlClass="product-info-main product-shop col-md-7 col-sm-7 col-xs-12" after="product.info.media">
                                    <container name="product.shopcontent" htmlTag="div" htmlClass="product-shop-content clearfix">
                                        <container name="product.content.left" htmlTag="div" htmlClass="shop-content-left">
                                            <container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
                                                <block class="Magento\Catalog\Pricing\Render" name="product.price.final" before="product.info.stock.sku">
                                                    <arguments>
                                                        <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                                                        <argument name="price_type_code" xsi:type="string">final_price</argument>
                                                        <argument name="zone" xsi:type="string">item_view</argument>
                                                    </arguments>
                                                </block>
                                                <container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
                                                    <container name="product.info.type" before="-"/>
                                                    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.sku" template="product/view/attribute.phtml" before="product.price.final">
                                                        <arguments>
                                                            <argument name="at_call" xsi:type="string">getSku</argument>
                                                            <argument name="at_code" xsi:type="string">sku</argument>
                                                            <argument name="css_class" xsi:type="string">sku</argument>
                                                            <argument name="at_label" xsi:type="string">default</argument>
                                                            <argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
                                                        </arguments>
                                                    </block>
                                                </container>
                                            </container>
                                            <block class="Magento\Catalog\Pricing\Render" name="product.price.tier" before="product.info.sku">
                                                <arguments>
                                                    <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                                                    <argument name="price_type_code" xsi:type="string">tier_price</argument>
                                                    <argument name="zone" xsi:type="string">item_view</argument>
                                                </arguments>
                                            </block>
                                            <block class="Magento\Catalog\Block\Product\View" name="product.info.review" template="product/view/review.phtml" after="page.main.title" />
                                            <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.overview" template="product/view/attribute.phtml" group="detailed_info" after="product.info.review">
                                                <arguments>
                                                    <argument name="at_call" xsi:type="string">getShortDescription</argument>
                                                    <argument name="at_code" xsi:type="string">short_description</argument>
                                                    <argument name="css_class" xsi:type="string">overview</argument>
                                                    <argument name="at_label" translate="true" xsi:type="string">none</argument>
                                                    <argument name="title" translate="true" xsi:type="string">Overview</argument>
                                                    <argument name="add_attribute" xsi:type="string">itemprop="description"</argument>
                                                </arguments>
                                            </block>
                                            <container name="alert.urls" as="alert_urls" label="Alert Urls" after="product.price.tier"/>
                                            <!-- <block class="Magento\Catalog\Block\Product\View" name="product.info" template="product/view/form.phtml" after="alert.urls">
                                                <move element="product.info.extrahint" as="extrahint" destination="product.info" label="Product View Extra Hint"/>
                                            </block> -->
                                        </container>
                                    </container> 
                                </container>
                            </container> ```
4

1 回答 1

0

非易失性!我不小心注释掉了一个额外的结束标签并删除了另一个结束标签。我想到了。

于 2019-09-25T21:55:49.433 回答