`

Jquery实现Faq问题demo

阅读更多
把所有代码放在一个html页面里
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>

    <script src="../Jquery/jquery-1[1].3.2.min.js" type="text/javascript"></script>

   
<script type="text/javascript">
        $(document).ready(function(){
            $("#faq").find("dd").hide();
            $("#faq").find("dt").click(function(){
                var  answer=$(this).next();
                if(answer.is(":visible"))
                {
                    answer.slideUp();
                }
                else
                {
                    answer.slideDown();
                }
                
            });
        });
    </script>

</head>
<body>
	<dl id="faq">
		<dt>点这里测试1?</dt>

		<dd>Never use oils or lotions which contain oils on your bird. They gunk up the feathers,
		and ruin their insulating properties. This means a chilled bird. Never wait out a cat bite--those
		require immediate veterinary attention--a bird can die within two days because a cat's mouth is so
		filthy and full of bacteria. Don't bother with over-the-counter medication. It really doesn't work,
		and in some cases, may upset the delicate bacterial balance in the bird's body, or even worsen the
		situation. Never try to treat a fracture at home.</dd>

		<dt>点这里测试2?</dt>
		<dd>Schedule a "well-bird" checkup. Prevention is the best medicine. Even though the bird might appear outwardly healthy, it may have a low-grade infection or something not so readily apparent. Your bird's health and your peace of mind will be worth it.</dd>
		
		<dt>点这里测试3?</dt>
		<dd>No. Don't attempt this, especially if the leg is broken or swollen. The vet will be able
		to remove the band, and deal with whatever injury maybe lurking under the banded area.</dd>
	
		<dt>点这里测试4?</dt>

		<dd>This is probably the most common mishap. The remedy is simple--yank! It's most easily done
		with two people. One to restrain the bird and the other to pull the feather. Use pliers, or a
		hemostat. Tweezers won't work on primaries. Make certain that the wing bones are firmly supported
		or you can break the wing. Clamp onto the feather and give a sharp tug in the direction of the
		feather. The feather will come out. Next, apply gentle, direct pressure to the follicle where the
		feather was to stop the bleeding. Dab some styptic powder on it, as it will help stop the bleeding
		as well. Let the bird rest. Ask your vet or breeder to demonstrate exactly how to pull a blood
		feather if you're apprehensive about doing it.</dd>
	</dl>

</body>
</html>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics