使用bootstrap设置两个元素宽度等于容器?

时间:2015-08-27 15:56:25

标签: html css twitter-bootstrap

我有两个div内部容器,这些div应该根据容器的宽度来确定,它们之间应该有适当的空间

<div id="testimonial-wrapper">
    <div class="container">
        <ul class="inline-section row">
            <li class="signature-interior-features green-background col-sm-5 col-md-5">
                <div class="signature-interior-content">
                    <h2>Signature Interior Features</h2>
                    <ul>
                        <li>Full-sized washer and dryer in every home</li>
                        <li>Walk-in closets and walk-in pantries and
                        vaulted ceilings available*</li>
                        <li>Appliance packages with multi-cycle dishwasher,
                        range and frost-free refrigerators</li>
                        <li>Large stainless steel sinks with disposal</li>
                        <li>Linen closets</li>
                        <li>Cozy wood-burning fireplace in every home</li>
                        <li>Spacious patios with exterior storage</li>
                        <li>Individual hot water heaters</li>
                        <li>Electric HeatM</li>
                        <li>Pre-wired for phone, cable and high-speed Internet access</li>
                        <li>Interior packages available*</li>
                    </ul>
                </div><!--signature-interior-content-closed-->
            </li>
            <li class="community-elements-details sky-background col-sm-5 col-md-5">
                <div class="community-elements-content">
                    <h2>Community Elements</h2>
                    <ul>
                        <li>Clubhouse with social room and kitchen</li>
                        <li>Athletic center with cardio equipment and free weights</li>
                        <li>Sparkling outdoor swimming pool</li>
                        <li>Invigorating indoor spa</li>
                        <li>Complimentary tanning studio</li>
                        <li>Sports court</li>
                        <li>Close proximity to the Sounder commuter train and
                        the Super Mall</li>
                        <li>Only minutes to Emerald Downs and I-5 with
                        easy access to Highway 167 and Highway 18</li>
                        <li>Professional on-site maintenance</li>
                        <li>Professional on-site management
                        *in select apartment home</li>
                    </ul>
                </div><!--community-elements-content-closed-->
            </li>
        </ul>
    </div><!--container-closed-->
</div><!--testimonial-wrapper-closed-->

0 个答案:

没有答案