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

  • 相关阅读:
    CompareUtil
    linux awk学习笔记
    linux用grep查找包含两个关键字的命令
    mysql 使用set names 解决乱码问题
    对私有静态方法进行单测
    使用JUnit测试预期异常
    Tortoise svn 冲突解决主要办法
    tortoise svn冲突解决
    word-break与word-wrap
    移动端适配
  • 原文地址:https://www.cnblogs.com/wxhhts/p/7798680.html
Copyright © 2011-2022 走看看