zoukankan      html  css  js  c++  java
  • python之HTML(body,a标签超链接)

    a标签:跳转,锚(行内标签)
    跳转:
    <body>
        <a href="http://www.baidu.com" target="_blank">百度</a>                      _blank是新窗口打开,还有其他属性
    </body>
    
    锚的简单示例:标签的Id不可以重复
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
    <a href="#i1">第一章</a>
    <a href="#i2">第二章</a>
    <a href="#i3">第三章</a>                                          <!--#加id意为和id为i3的标签绑定并能跳转到相应的标签-->
    <a href="#i4">第四章</a>
    <div id="i1" style="height:600px;">第一章内容</div>
    <div id="i2" style="height:600px;">第二章内容</div>
    <div id="i3" style="height:600px;">第三章内容</div>               <!--绑定id目的为实现跳转提供目标-->
    <div id="i4" style="height:600px;">第四章内容</div>
    </body>
  • 相关阅读:
    17111 Football team
    Train Problem I (HDU 100题纪念)
    迷宫问题
    图形点扫描
    看病要排队(stl)
    水果
    Prime Ring Problem
    N皇后问题
    2^x mod n = 1
    Queuing
  • 原文地址:https://www.cnblogs.com/god-for-speed/p/11569878.html
Copyright © 2011-2022 走看看