このdivを停止して、特定の価格を選択した場所の下にすべての要素を移動するにはどうすればよいですか?
私が話していることを確認するには、このリンクを見てください:下の価格表のスタイル 3 を確認して ください。特定の価格表を選択すると、ポップアウトのために下のすべての要素が移動することがわかります。この機能を使用できるようにしたいのですが、もちろん、下のすべての要素を移動する必要はありません。
どうやってやるの?
Javascript へのリンクは次のとおりです: JS
編集:
関連する HTML を投稿しています:
<!-- DC Pricing Tables:3 Start -->
<div class="tsc_pricingtable03 tsc_pt3_style1">
<div class="caption_column">
<ul>
<li class="header_row_1 align_center radius5_topleft"></li>
<li class="header_row_2">
<h2 class="caption">Choose plan</h2>
</li>
<li class="row_style_4"><span>Web Space</span></li>
<li class="row_style_2"><span>Bandwidth</span></li>
<li class="row_style_4"><span>E-mail accounts</span></li>
<li class="row_style_2"><span>MySQL databases</span></li>
<li class="row_style_4"><span><a href="#" class="tooltip" rel="Web-based control panel system">CPANEL</a></span></li>
<li class="row_style_2"><span><a href="#" class="tooltip" rel="24/7 Support via Phone, Email, Web.">24/7 Support</a></span></li>
<li class="footer_row"></li>
</ul>
</div>
<div class="column_1">
<ul>
<li class="header_row_1 align_center">
<h2 class="col1">starter</h2>
</li>
<li class="header_row_2 align_center">
<h1 class="col1">$<span>5</span></h1>
<h3 class="col1">per month</h3>
</li>
<li class="row_style_3 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">10GB</a></span></li>
<li class="row_style_1 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">100GB</a></span></li>
<li class="row_style_3 align_center"><span><a href="#" class="tooltip" rel="Tooltip info.">1</a></span></li>
<li class="row_style_1 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">1</a></span></li>
<li class="row_style_3 align_center"><span class="pricing_no"></span></li>
<li class="row_style_1 align_center"><span class="pricing_yes"></span></li>
<li class="footer_row"><a href="" class="tsc_buttons2 grey">sign up!</a></li>
</ul>
</div>
<div class="column_2">
<ul>
<li class="header_row_1 align_center">
<h2 class="col2">basic</h2>
</li>
<li class="header_row_2 align_center">
<h1 class="col2">$<span>10</span></h1>
<h3 class="col2">per month</h3>
</li>
<li class="row_style_4 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">30GB</a></span></li>
<li class="row_style_2 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">200GB</a></span></li>
<li class="row_style_4 align_center"><span><a href="#" class="tooltip" rel="Tooltip info.">10</a></span></li>
<li class="row_style_2 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">10</a></span></li>
<li class="row_style_4 align_center"><span class="pricing_yes"></span></li>
<li class="row_style_2 align_center"><span class="pricing_yes"></span></li>
<li class="footer_row"><a href="" class="tsc_buttons2 grey">sign up!</a></li>
</ul>
</div>
<div class="column_3">
<ul>
<li class="header_row_1 align_center">
<h2 class="col3">pro</h2>
</li>
<li class="header_row_2 align_center">
<h1 class="col3">$<span>29</span></h1>
<h3 class="col3">per month</h3>
</li>
<li class="row_style_3 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">100GB</a></span></li>
<li class="row_style_1 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">500GB</a></span></li>
<li class="row_style_3 align_center"><span><a href="#" class="tooltip" rel="Tooltip info.">50</a></span></li>
<li class="row_style_1 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">50</a></span></li>
<li class="row_style_3 align_center"><span class="pricing_yes"></span></li>
<li class="row_style_1 align_center"><span class="pricing_yes"></span></li>
<li class="footer_row"><a href="" class="tsc_buttons2 grey">sign up!</a></li>
</ul>
</div>
<div class="column_4">
<ul>
<li class="header_row_1 align_center radius5_topright">
<h2 class="col4">biz</h2>
</li>
<li class="header_row_2 align_center">
<h1 class="col4">$<span>39</span></h1>
<h3 class="col4">per month</h3>
</li>
<li class="row_style_4 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">Unlimited</a></span></li>
<li class="row_style_2 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">1000GB</a></span></li>
<li class="row_style_4 align_center"><span><a href="#" class="tooltip" rel="Tooltip info.">Unlimited</a></span></li>
<li class="row_style_2 align_center"><span><a href="#" class="tooltip" rel="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">Unlimited</a></span></li>
<li class="row_style_4 align_center"><span class="pricing_yes"></span></li>
<li class="row_style_2 align_center"><span class="pricing_yes"></span></li>
<li class="footer_row"><a href="" class="tsc_buttons2 grey">sign up!</a></li>
</ul>
</div>
</div>
<!-- DC Pricing Tables:3 End -->
<div class="tsc_clear"></div> <!-- line break/clear line -->
そしてCSS:
div.tsc_pricingtable03 div.column_1,
div.tsc_pricingtable03 div.column_2,
div.tsc_pricingtable03 div.column_3,
div.tsc_pricingtable03 div.column_4 { /* transitions */ -webkit-transition:box-shadow 0.1s ease; -moz-transition:box-shadow 0.1s ease; -o-transition:box-shadow 0.1s ease; -ms-transition:box-shadow 0.1s ease; transition:box-shadow 0.1s ease;}
div.tsc_pricingtable03 div.column_1:hover,
div.tsc_pricingtable03 div.column_2:hover,
div.tsc_pricingtable03 div.column_3:hover,
div.tsc_pricingtable03 div.column_4:hover { position:relative; z-index:100; left:-5px; top:-15px; /* shadow */ box-shadow:5px 0px 30px rgba(0, 0, 0, 0.5); -webkit-box-shadow:5px 0px 30px rgba(0, 0, 0, 0.5); -moz-box-shadow:5px 0px 30px rgba(0, 0, 0, 0.5);}