这是一个使用 HTML 和 CSS 创建圣诞树的简单示例代码:
<style>
/* 为圣诞树设置样式 */
.christmas-tree {
height: 500px;
width: 400px;
background-color: green;
position: relative;
}
/* 为圣诞树上的装饰设置样式 */
.decoration {
height: 20px;
width: 20px;
background-color: red;
border-radius: 50