zoukankan      html  css  js  c++  java
  • 字符串样式效果

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title></title>
    </head>
    <script type="text/javascript">
    (function(){
    var str="hello javaScript";

    document.write("加锚:"+str.anchor("myLinkName")+"<br />");
    document.write("加大:"+str.big()+"<br />");
    document.write("闪烁:"+str.blink()+"<br />");
    document.write("加粗:"+str.bold()+"<br />");
    document.write("等宽:"+str.fixed()+"<br />");
    document.write("颜色:"+str.fontcolor("red")+"<br />");
    document.write("5号字体:"+str.fontsize(5)+"<br />");
    document.write("斜体:"+str.italics()+"<br />");
    document.write("链接:"+str.link("01.html")+"<br />");
    document.write("缩小:"+str.small()+"<br />");
    document.write("删除线:"+str.strike()+"<br />");
    document.write("上标:"+str.sup()+"<br />");
    document.write("下标:"+str.sub()+"<br />");
    })();

    //字符串样式效果
    </script>
    <body>
    </body>
    </html>

    。。。。。。。。。。。。。。。。。。

    加锚:hello javaScript
    加大:hello javaScript
    闪烁:hello javaScript
    加粗:hello javaScript
    等宽:hello javaScript
    颜色:hello javaScript
    5号字体:hello javaScript
    斜体:hello javaScript
    链接:hello javaScript
    缩小:hello javaScript
    删除线:hello javaScript
    上标:hello javaScript
    下标:hello javaScript

  • 相关阅读:
    hbase distributed setup and configuration
    代码优化 性能调优
    正则表达
    [转载]Java&.Net虚拟机精简(GreenJVM&GreenDotNet发布)
    [JQuery]一款不错的jquery验证框架
    js特效集
    jQuery滚动插件2 jCarousel
    c3p0连接池
    php5 apache config
    jQuery滚动插件 (轮播)
  • 原文地址:https://www.cnblogs.com/wxhhts/p/7798680.html
Copyright © 2011-2022 走看看