1

ここに html/css コードがあり、これがこのコードになります。下の画像を参照してください。最初の「将来のイベント」の下にさらに 3 つの列を追加したいのですが、どうすればよいですか? すでにコードを投稿しました: ありがとう、段落の間隔のコードは何ですか? こちらの画像をご覧ください: http://www.freeuploadimages.org/images/nc1xjrptgddvk1yxvnad.png

「未来のイベント」のスペースを少し上に持っていきたいと思います。それは可能ですか?

これがコードです: ここで更新されたコードを確認してください: http://jsfiddle.net/b5fMe/4/

間にセパレーターが必要ですが、


動作しません:-(

4

2 に答える 2

1

3 つのブロックを複製するには、実際にtrはそれらを含む行、タグをコピーする必要があります。コードをコピーして貼り付けます:

<tr>
        <td class="content threecol first" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 25%; padding-right: 20px; padding-left: 0pt; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><!--<h2 class="secondary-heading" 
      style="font-size: 18px;font-weight: normal;color: #333;font-style: 
      normal;font-family: Georgia;text-align: 
     left;margin-bottom: 15px;">Future Event</h2>-->

          <h2 class="secondary-heading">Future Event</h2>
          <p2 class=".secondary-paragraph"> Sed ut persp iciatis unde omnis iste natus error sit voluptatem 
            accusantium doloremque laudantium, totam rem aperiam, eaque.</p2></td>
        <td class="content threecol" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 20px; padding-left: 20px; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><h2 class="secondary-heading" style="font-size: 18px; font-weight: normal; color: rgb(51, 51, 51); font-style: normal; font-family: Georgia; text-align: left; margin-bottom: 15px;">Future Event</h2>
          <p>Sed ut persp iciatis unde omnis iste 
            natus error sit voluptatem accusantium doloremque laudantium, totam rem 
            aperiam, eaque.</p></td>
        <td class="content threecol last" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 15px; padding-left: 20px; padding-top: 20px; margin-right: 15px; border: 0pt none;"><p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">&nbsp; </p>
          <p class="btn" style="background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);"> <a href="#" style="color: rgb(255, 255, 255); text-decoration: none; font-weight: normal; font-size: 26px; font-family: Georgia; text-transform: uppercase; text-align: center; display: block; padding: 20px 0pt;"> <img height="50" border="0" width="119" alt="" src="http://gallery.mailchimp.com/86b4d752e397a2dbd09e3dd60/images/logowikima4.gif" style="text-align: center; display: block;"></a> </p>
          <p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">&nbsp; </p>
          <p> Let us know if you are coming and if you have guests.</p>
      </td></tr>

あなたのコードでは、上記のコードが見つかります。その下に同じものを貼り付けてください。

line-height間隔については、secondary-headingクラスに合わせて変更できます。

たとえば.secondary-heading {line-height:1.4;}、必要に応じて変更してください。

于 2010-08-26T09:36:25.673 に答える
1

あなたはCSSを持っています:

   #content .secondary-heading{
   font-size:18px;
font-weight:normal;
color:#333;
font-style:normal;
font-family:Georgia;
text-align:left;
margin-bottom:150px;
    }

以下を指定します。

margin-bottom:150px;

しかし、HTML には 2 番目のインライン コードがあります。

<h2 class="secondary heading">どの州:

style="font-size: 18px;font-weight: normal;color: #333; font-style: normal;font-family: Georgia;text-align: left;margin-bottom: 15px;".

このインライン スタイルを削除すると、期待どおりに動作するはずです。

編集

CSS の場合:インライン スタイルを削除した後に に変更margin-bottom:150px;します。margin-bottom:15px;

それが役立つことを願っています!

于 2010-08-26T09:13:42.153 に答える