前端基础——自学习梳理

超文本协议HTML

html 复制代码
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">  
        <style>    /*Css*/
         .sty1{height:100px;width:100px;background-color: red;margin-top: 10px;float:left;margin-left: 10px;box-shadow: 10px 10px 10px #000000;}       /*margin-top 上边距*/
         /* float 浮动属性*/   /*margin-top left 可以放到页面任何地方*/
         .sty2{margin-left: -50px;background-color: green;margin-top: 60px;transform: rotate(30deg);}/*旋转30度*/     /*向右偏 向下偏 渐变*/
         .sty3{opacity: 0.8; border-radius: 10px;}  /*透明度 圆角属性*/
         .sty4{background-color: white;border-radius: 10px;box-shadow: 0px 0px 10px #00f;}
        </style>
   </head>
<body>
      你好
      <input type="text" />
      <input type="button" value="按钮" />  
      <select>
         <option>选择1</option>
         <option>选择2</option>
         <option>选择3</option>
         <option>选择4</option>
      </select> 
      <div class="sty1" onclick="m0()">   </div>             <!--万能标签;style可以在任何一个标签-->
      <div class="sty1">   </div>             <!--div 属性很精确,其他可能有误差--> 
      <div class="sty1">   </div>             <!--默认从上到下-->
      <div class="sty1">   </div>
      <div class="sty1 sty2 sty3">   </div>         <!--相同属性覆盖,不同保留-->
      <div id="aaa" class="sty1">   </div>    <!-- id和class之间不需要; -->
      <div class="sty1 sty4">   </div>
 </body>

 <script>         // 54:00  JavaScript(和java没关系) 弱类型(PHP、PYTHON) 简单但是性能差
   var x1=90;
   var x2="adava";
   var x3=[1,2,3,1];    //数组
   var x4='afag';       //也是字符串
   var x5=23.5;
   var x6=[12,2.3,'adfa',"wdwd",[1,3.2,"adw"]];    //!

   var x7=m1(2,9);      //函数使用可以在函数定义上面
   var x8=m1(2,"hae");
   var x9=m1("af","gedf");
   function m1(a,b){
      return a+b;
   }
   // console.info(x7);//控制台输出
   // console.info(x8);
   // console.info(x9);

   function m0(){
      setTimeout("m2()",3000);
   }
   function m2(){
      // alert("大家好");
      var w=document.getElementById("aaa");
      w.style.height="120px";
      w.style.transform="rotate(45deg)";
   }

 </script>
</html>

免安装的叫做绿色程序(解压即可使用,对操作系统来说负担会小)

tomcat默认端口8080

bin--脚本所在目录

conf---配置文件所在目录

lib---函数库所在目录

logs---日志

webapps-----存放网站的地方

.bat windos下的脚本 .sh是shell脚本

chmod 777 *.sh .sh结尾的权限都变为777

在bin目录下 sh startup.sh 启动(或者./startup.sh) shutdown.sh 关闭

html 复制代码
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">  
        <style>    /*Css*/
         .sty1{height:100px;width:100px;background-color: red;margin-top: 10px;float:left;margin-left: 10px;box-shadow: 10px 10px 10px #000000;}       /*margin-top 上边距*/
         /* float 浮动属性*/   
         /* float,css的一种属性,主要属性值为:left(左浮动)、none(不浮动)、right(右浮动)、inherit(继承父元素浮动),多用于网页排版。 */
         /*margin-top left 可以放到页面任何地方*/
         .sty2{margin-left: -50px;background-color: green;margin-top: 60px;transform: rotate(30deg);}/*旋转30度*/     /*向右偏 向下偏 渐变*/
         .sty3{opacity: 0.8; border-radius: 10px;}  /*透明度 圆角属性*/
         .sty4{background-color: white;border-radius: 10px;box-shadow: 0px 0px 10px #00f;}
        </style>
   </head>
<body>
      你好
      <input type="text" />
      <input type="button" value="按钮" />  
      <select>
         <option>选择1</option>
         <option>选择2</option>
         <option>选择3</option>
         <option>选择4</option>
      </select> 
      <div class="sty1" onclick="m0()">   </div>             <!--万能标签;style可以在任何一个标签-->
      <div class="sty1">   </div>             <!--div 属性很精确,其他可能有误差--> 
      <div class="sty1">   </div>             <!--默认从上到下-->
      <div class="sty1">   </div>
      <div class="sty1 sty2 sty3">   </div>         <!--相同属性覆盖,不同保留-->
      <div id="aaa" class="sty1">   </div>    <!-- id和class之间不需要; -->
      <div class="sty1 sty4">   </div>
 </body>

 <script>         //JavaScript(脚本语言 和java没关系) 弱类型(PHP、PYTHON) 简单但是性能差
   var x1=90;
   var x2="adava";
   var x3=[1,2,3,1];    //数组
   var x4='afag';       //也是字符串
   var x5=23.5;
   var x6=[12,2.3,'adfa',"wdwd",[1,3.2,"adw"]];    //!

   var x7=m1(2,9);      //函数使用可以在函数定义上面
   var x8=m1(2,"hae");
   var x9=m1("af","gedf");
   function m1(a,b){
      return a+b;
   }
   // console.info(x7);//控制台输出
   // console.info(x8);
   // console.info(x9);

   function m0(){
      // setTimeout("m2(1)",3000);
      m2(1);
   }
   function m2(x){
      // alert("大家好");
      var w=document.getElementById("aaa");
      w.style.height=(100+x)+"px";
      w.style.transform="rotate("+x+"deg)";
      x+=1;                         //可以增加2、3 使它变化更快
      if(x>300){
         x=1;
      }
      setTimeout("m2("+x+")",10);   //最快1s运行10次
   }

 </script>
</html>
相关推荐
吴声子夜歌44 分钟前
Shell编程实例——编写安全的shell脚本(二)
linux·运维·shell
悠悠121381 小时前
微服务通信别只看性能:REST 与 gRPC 的 6 个选型判断和一次 502 故障复盘
运维·服务器
云老大-阿里云国际站代理商3 小时前
华为云国际站服务代理商:NAT网关怎么配?多台ECS共用公网IP要注意什么
服务器·华为云·云计算
zx_741484813 小时前
【Linux入门】Shell 函数、正则表达式与文本处理:cut 与 awk
linux·运维·正则表达式
Zenova EdgeOS3 小时前
Linux dmesg 工业边缘实战:内核日志过滤、持久化与故障定位
linux·运维·边缘计算·工业边缘·dmesg·内核日志
wdfk_prog4 小时前
ROS教程08:从 TransportTCP::connect() 追到 TCPROS Connection Header、序列化与 Socket 数据传输
运维·缓存·docker·容器·ros
做运维的阿瑞5 小时前
Python 标准库汇总:分类速览与常用模块清单
linux·运维·python
子非鱼a5 小时前
【XSS】乌托邦·王的实验室
html·xss
浅念-5 小时前
Redis基础详解:单线程模型、String与Hash数据结构
服务器·数据库·redis·sql·mysql·nosql数据库·nosql
日常筹谋记6 小时前
自动化仓储安全防护工况评估:明治传感器AS-33C技术适配性分析
大数据·运维·创业创新·业界资讯