.prepend() .append()

by Kim Ara

HTML

<div class="cu_m_sec_b_guide">
  <h2>GUIDE</h2>
  <ul>
    <li class="inner"><a href="#">자주 묻는 질문</a></li> <br>


  </ul>
</div>

CSS

.cu_m_sec_b_guide ul li {/* float:left;  */width:100px; border:1px solid; height:77px; text-align:center;list-style-type:none; background:url(http://www.cuchen.com/images/main/cu_m_sec_guide1.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li:nth-child(1) {}
.cu_m_sec_b_guide ul li:nth-child(2) {background:url(http://www.cuchen.com/images/main/cu_m_sec_guide2.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li:nth-child(3) {background:url(http://www.cuchen.com/images/main/cu_m_sec_guide3.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li:nth-child(4) {background:url(http://www.cuchen.com/images/main/cu_m_sec_guide4.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li:nth-child(5) {background:url(http://www.cuchen.com/images/main/cu_m_sec_guide5.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li:nth-child(6) {background:url(http://www.cuchen.com/images/main/cu_m_sec_guide6.gif) center 0 no-repeat;}
.cu_m_sec_b_guide ul li a {display:block; width:126px; height:28px; padding-top:49px; font-size:12px; color:#000;text-decoration:none}

JavaScript

$('<span>Test01</span>').insertAfter('.inner');
$('.inner').after('<p>Test</p>');

$('<span>Hello01</span>').insertBefore('.inner');
$('.inner').before('<p>Hello</p>');