zoukankan      html  css  js  c++  java
  • 字体变大变小

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    * {
    font-size:12px
    }
    </style>
    <script>
    window.onload = function(){
    var Oreduce = document.getElementById('reduce');
    var Oadd = document.getElementById('add');
    var Ocontent = document.getElementById('content');
    num = 12;
    Oreduce.onclick = function(){
    if(num > 12 ){
    num--;
    Ocontent.style.fontSize = num+'px';
    }
    }
    Oadd.onclick = function(){
    if(num < 22){
    num++;
    Ocontent.style.fontSize = num+'px';
    }
    }
    }
    </script>
    </head>


    <body>
    <div>
    <div class="botton_con">
    <input type="button" value="-" id="reduce" />
    <input type="button" value="+" id="add"/>
    </div>
    <div id="content">收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格收到更好的发挥的发挥的风格</div>
    </div>
    </body>
    </html>

  • 相关阅读:
    CF528D Fuzzy Search
    P3489 付公主的背包
    有标号的DAG计数
    P4609 [FJOI2016]建筑师
    mds/journal.cc: 2929: FAILED assert解决
    Ceph根据Crush位置读取数据
    关于backfill参数建议
    rados put striper功能的调试
    Cephfs的文件存到哪里了
    为什么删除的Ceph对象还能get
  • 原文地址:https://www.cnblogs.com/Xuman0927/p/12050870.html
Copyright © 2011-2022 走看看