加载中...

随笔分类 -  练习与实例

摘要:拿最常用的nginx举例 删除nginx–purge包括配置文件 sudo apt-get --purge remove nginx开始使用上面这条,后来发现还是有很多相关联没有删除 首先需要停止nginx的服务 sudo systemctl stop nginx 列出与nginx相关的软件 并删除 阅读全文
posted @ 2020-01-05 18:34 royal6 阅读(369) 评论(0) 推荐(0)
摘要:安装nginx以及两个以上tomcat,并启动 配置集群nginx/conf/nginx.conf文件 说明:server_list为名字,可以在每台服务器ip后面添加weight number,设置每台服务器的权重 重新加载配置 nginx -s reload Tomcat集群的session共享 阅读全文
posted @ 2020-01-04 17:42 royal6 阅读(1200) 评论(0) 推荐(0)
摘要:移动端浏览器现状 视口 meta视口标签 二倍图 移动端主流方案 移动端技术解决方案 移动端常见布局 1.流式布局(百分比布局) 2.flex布局 3.rem适配布局 1)rem单位 2)媒体查询 3)less 4)rem 适配方案 5)案例1 6)案例2 移动端浏览器现状: 国内的UC和QQ,百度 阅读全文
posted @ 2019-12-20 20:35 royal6 阅读(1401) 评论(0) 推荐(1)
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>瀑布流</title> <style> .out{position: relative; margin: 0 auto;} .in{ float:left;} img{ margi 阅读全文
posted @ 2019-01-23 20:58 royal6 阅读(109) 评论(0) 推荐(0)
摘要:/* * *create by royal in 2019/1/23 * *royalAjax 自封装ajax函数 * *paramsObj JSON类型参数 *require params: * type : string * url : string * data : JSON * succes 阅读全文
posted @ 2019-01-23 13:55 royal6 阅读(190) 评论(0) 推荐(0)
摘要:js代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>三级联动</title> <style> select{ width:150px; height:35px;} </style> </head> <body> <sel 阅读全文
posted @ 2019-01-22 20:48 royal6 阅读(7435) 评论(0) 推荐(0)
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>上传文件TEST</title> <style> .demo{ width:50%; margin:120px auto;} </style> </head> <body> <di 阅读全文
posted @ 2019-01-21 21:05 royal6 阅读(261) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-01-21 14:53 royal6 阅读(3) 评论(0) 推荐(0)
摘要:HTML+CSS代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>图片轮播</title> <style> *{ margin:0; padding:0;} ul{ list-style:none;} .clear{ cl 阅读全文
posted @ 2019-01-14 11:25 royal6 阅读(170) 评论(0) 推荐(0)