<script type="text/javascript">
//找到第一个div
$('.div:first').css("color", "#CD00CD");
</script>
$('div > div:first').css("color", "#CD00CD");