H5 -----WebStorage 案例------模仿收藏夹
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
header {
width: 100%;
padding: 20px 0;
background: blue;
color: #fff;
border-bottom: 2px solid #ccc;
text-align: center;
}
ul li {
list-style: none;
padding: 20px