0

外に出る内のdivに気づいた<p>ので、「受け取りますか...」は a 内にあり、divの後にはすべてが1つの中にあるのではなく<p>、空の があります<p></p><p>

ここでバグを見た人はいますか?

<p class="subs1">
                Do you want to receive our emails and new collection previews? 
                <div style="" class="styledRadio first_radio">
                    <input type="radio" value="yes" name="user[collection_previews]" style="display: none;">
                </div>
                Yes 
                &nbsp;&nbsp;&nbsp;
                <div style=" width: 20px; height: 20px; cursor: pointer; background-position: 0px 0px;" class="styledRadio">
                    <input type="radio" value="no" name="user[collection_previews]" style="display: none;">
                </div>
                No
            </p>

すべてが subs1 p 内にあるはずですが、そうではありません

4

3 に答える 3

3

<p>タグにブロック レベルのタグを含めることはできません。これらのタグは無効な html と見なされ、ページのレンダリング方法を説明します。<div>ブロック要素 (この場合) を壊して、まさにブロック レベルの要素にします。

代わりに<div>s を aに変更してみてください。<span>

div は「ブロック」タイプです。これが、div が独自の行に分かれている理由です。それらをスパン (インラインでもある) に変更すると、アイテムをタグでラップしながら、1 行にまとめることができます。

于 2013-04-23T11:04:01.140 に答える