fonts\\playericons.svg#playericons") format('svg');
font-weight: normal;
font-style: normal;
}
#menu ul
*/
margin-left: 2px;
}
#menu ul li:first-child{
background-color: red; /* 将第一个li 项目背景色设置为红色 */
}
#menu ul li span:before{
content: '\70';
background-color: blue;
font-size: 16px;
line-height:
常见的块级元素有:h1~h6、p、div、ul、table,常见的行内元素有:span、a、input、select等。
li:hover{
color: yellow;
}
</style>
创建节点
$(function () {
// var box = document.getElementById("box");
//
// var a = document.createElement
$("#box").append('传智大前端');
});
添加节点
$('div').after($("p"));
// $('div').before($("p"));
});
</script>
</body>
</html>
删除节点
{
width: 450px;
height: 160px;
outline: none;
resize: none;
}
ul
id="ul">
</ul>
小白前端入门笔记(14),ul标签创建无序list
</main>
解法
这次的挑战主要是教我们学会使用ul标签,ul标签在网页当中非常常用,结合CSS我们可以使用出各种炫酷的效果。
>
<ul>
jQuery基础--创建节点和 添加节点