文章分类 -  html js css

摘要:html5 新增加了header nav footer section article aside标签 <audio controls="controls" autoplay="autoplay" loop="loop"> <source src="xx.mp3" type="audio/mp3"> 阅读全文
posted @ 2020-04-08 15:02 howhy 阅读(67) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> *{ margin: 0; padding: 0; } body{ width:100%; } div{ width:600px; height: 阅读全文
posted @ 2020-04-07 14:00 howhy 阅读(55) 评论(0) 推荐(0)
摘要:/*点击高亮显示清除*/ -webkit-tap-hightlight-color:transparent; -webkit-appearance:none; /*禁用长按页面时弹出菜单*/ img,a{-webkit-touch-callout:none;} 移动端技术选型: 单独的移动端页面:1 阅读全文
posted @ 2020-04-03 10:10 howhy 阅读(72) 评论(0) 推荐(0)
摘要:backgroud-size:图片的宽度 图片的高度(只写一个就是宽度 等比例) backgroud-size:百分比 相对父元素大小的百分比 backgroup-size:cover 将图片大小完全覆盖盒子 等比例 backgroup-size:contain 当宽度或高度铺满盒子就不用拉绅了 阅读全文
posted @ 2020-04-02 18:13 howhy 阅读(112) 评论(0) 推荐(0)
摘要:less变量定义 @变量名:值; less 语法 @color:red; @basefont:12rem; @hsize:12px; div{ color:@color; font-size:@basefont + 2; /* 1、+ - * / 运算符两边要有空格 2、若一个运算数有单位则结果是这 阅读全文
posted @ 2020-04-02 09:13 howhy 阅读(220) 评论(0) 推荐(0)
摘要:@media screen and (){} 注:and和括号中间要空一格,括号里min-width max-width是少于等于 或大于等于 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel 阅读全文
posted @ 2020-04-01 15:45 howhy 阅读(83) 评论(0) 推荐(0)
摘要:ES5 严格模式:'use strict' 1、定义变量必须加var或let //let 定义变量必须赋值 var定义变量不赋值为undefined 2、禁止自定义的函数中的this指向window 3、创建eval作用域 4、对象不能有重名的属性 json对象: JSON.stringify()将 阅读全文
posted @ 2019-05-22 15:46 howhy 阅读(67) 评论(0) 推荐(0)
摘要:一、Nginx安装(略) 安装的时候需要注意加上 --with-http_ssl_module,因为http_ssl_module不属于Nginx的基本模块。Nginx安装方法: 1 2 # ./configure --user=www --group=www --prefix=/usr/local 阅读全文
posted @ 2017-07-31 16:34 howhy 阅读(171) 评论(0) 推荐(0)