scale(
- html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>网页title>
- <style>
- ul{
- list-style-type:none ;
- }
- li{
- width: 100px;
- line-height: 30px;
- margin-left: 30px;
- float: left;
-
- }
- a{
- display: block;/*行内元素变成块元素才可以设置行高和宽和下面的属性*/
- text-align: center;
- height: 30px;
- text-decoration: none;
- }
- a:link {/*未被访问过的链接*/
- color: yellow;
- background-color: #ccc;
- }
- a:visited{/*将样式添加到已经被访问过的元素*/
- color: red;
- transform: scale(1.5);
- background-color: yellow;
- text-decoration: underline;
- }
- a:hover{/*当鼠标悬停在元素上方*/
- color: black;
- font-weight: bold;
- background-color: orange;
-
- }
- style>
- head>
- <body>
- <ul>
- <li><a href="#">HTMLa>li>
- <li><a href="#">CSSa>li>
- <li><a href="#">JSa>li>
- ul>
- body>
- html>


