Lesson01_05 HTML中的超链接


格式:<A HREF=" "></A>

代码:<A HRER="HTTP://WWW.LONCER.CN">LONCER'S BLOG</A>

效果:LONCER'BLOG

可以用来启动邮件发送:

代码:<A HRER="MAILTO:THINKME722@GMAIL.COM?SUBJECT=问个问题">LONCER'SEmail</A>

效果:LONCER'Email

  • TARGET属性:

    例如:在新窗口中打开:

    代码:<A HRER="HTTP://WWW.LONCER.CN" TARGET="_BLANK">LONCER'S BLOG</A>

    效果:LONCER'BLOG

  • NAME属性:指写打开时的显示地点

    如果是在同一页中转则如下:
    1、先在要跳到的地方用:<A NAME="markname">
    2、再在要跳转的地方用:<A HREF="#markname">跳转到markname处</A>

    例如:
    代码:<A HREF="#markname">跳转到markname处</A>
    效果:跳转到markname处
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    jjvvjjvvjjvvjjvvjjvvjjvvjjvv
    他娘的有完没有……汗
    跳到这里了,代码如下:
    <A NAME="MARKNAME"> 自己
    特别的如下: <A HREF="">指向的是文件所在目录</A>
    指向的是文件所在目录
    注:如果文件是放在服务器上则打开目录下的默认文件



  • 相关阅读:
    Linux中安装Realplayer的方法
    CSS下背景属性background的使用方法
    repeater分页 内容显示
    asp.net防止刷新重新提交触发后台事件的方法
    用Trigger规范insert, update的值
    Windows Server 2008之AD RMS详细部署步骤
    从黑客角度检验oracle数据库
    JavaScript 学习笔记(四)
    asp被杀毒软件误删的解决方法
    Asp.NET 生成静态页面并分页的代码
    WEB服务器Apache编译指南及高级技巧
    Linux系统下挂载Windows分区的方法和技巧
    网页制作教程:简单总结CSS的基础属性
    用ASP对网页进行限制性的访问
    快速导航

    Copyright © 2016 phpStudy |