第六天,尝试给图片文字加入链接

 1 <head>
 2         <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 3         <title>第六天</title>
 4         <script type="text/javascript">
 5         window.alert("欢迎来到该玩网页")        
 6         </script>
 7         <style type="text/css">        
 8             div{
 9                 color:red;/*定义颜色*/
10                 font-size:x-large;    /*该属性设置元素的字体大小*/                                
11         </style>        
12         <style>
13             li{        
14                 color:#ff0000;        
15                 background-color:#c0c0c0;        
16                 }        
17         </style>        
18 </head>
19 <body>        
20         <div>
21             <ol>
22                 <li>一二三四五</li>
23                 <li>上山打老虎</li>                
24             </ol>
25             <a href="http://www.baidu.com"><img src="xiangpian/124.jpg"/></a><!--给图片加入超链接-->
26         <ol>
27             <li><a href="http://www.baidu.com" target="_blank">百度</a></li><!--标签的 target 属性规定在何处打开链接文档,_blank:在新窗口中打开被链接文档。-->            
28             <li><a href="http://www.ifeng.com" target="_blank">凤凰网</a></li>    
29         </ol>
30 </body>
31 </html>

 

posted on 2016-11-21 00:34  91xiaozhu  阅读(320)  评论(1编辑  收藏  举报