<div class="main">
<span>今天天气不错</span>
<span>今天阳光明媚</span>
</div>
<script>
var x = document.getElementById("main");
var y = x.getElementsByTagName("span");
</script>