zoukankan      html  css  js  c++  java
  • 10;XHTML 其他标记

    1.自动展示网页内容

    2.如何让别人找到你的网页

    3.活动文字:<marquee></marquee>

    4.在网页中加入脚本程序

    10.1 10.1 10.1 10.1 自动展示网页内容:

    格式:<meta http-equiv=refreshcontent=time;URL>

    1. meta 文件头声明

    2. http-equiv=refresh” 表示网页要重新下载显示

    3. content=time;URLtime 表示秒数,URL 网页显示内容

    例:<meta http-equiv=refreshcontent=3;url=index.htm>

    10.2 10.2 10.2 10.2 如何让别人找到你的网页:

    <meta>下的属性:

    属性名称 属性值 说明

    name author 描述作者资料

    description 描述网页的内容

    keywords 关键字,多个可用逗号隔开

    generator 描述网页是通过那种软件产生

    revised 描述网页的版本

    others 可设置其他网页信息

    content 字符串 配合 name,http-equive 设置

    例:<meta name=authorcontent=柳志军”>

    <meta name=descriptioncontent=”这是我的个人网站”>

    <meta name=keywordscontent=”音乐,动漫,博客”>

    <meta name=generatorcontent=”记事本”>

    <meta name=revisedcontent=html4.01>

    <meta name=otherscontent=”这个我第一个网站,网站的主要内容有

    动漫,音乐,文章,博客等等,欢迎大家光临!>

    10.3 10.3 10.3 10.3 活动文字:<marquee> <marquee> <marquee> <marquee>…………</marquee> </marquee> </marquee> </marquee>

    属性名称 属性值 说明

    behavior scroll 从右到左移动

    slide 从右到左停止

    alternate 两边移动

    direction left 向左移动

    right 向右移动

    up 向上移动

    down 向下移动

    bgcolor 英文/十六 背景颜色

    height 像素/百分比 高度

    width 像素/百分比 宽度

    scrollamount 数字 播放的速度

    vspace 像素 左右两册间距

    hspace 像素 上下两册间距

    10.4 10.4 10.4 10.4 在网页中加入脚本程序:

    <script type=”类型” src=URL></script>

    举例:

    1.alert("欢迎使用 JavaScript 脚本");

    2.var ans=prompt("请输入你的性别");

    if (ans) {

    alert("您的性别为:"+ans);

    }

    else {

    alert("您没有输入你的性别!");

    }

    柳志军:13418977808(手机微信),QQ:93684042
  • 相关阅读:
    Javascript 如何识别数组
    新手 如何搭建一个vue项目详解
    javasScript 七种数据类型
    WPF实现动画的几种方式及其小案例
    问题清单
    2020软件工程个人作业06——软件工程实践总结作业
    我的“捡漏”生涯——小黄衫篇
    2020软件工程作业05
    2020软件工程作业03
    Python: list indices must be integers or slices, not float问题
  • 原文地址:https://www.cnblogs.com/liu-zhijun/p/10550000.html
Copyright © 2011-2022 走看看