摘要: 1. 查看正在监听的端口 netstat -ntlp 2. 查看防火墙的状态 firewall-cmd –state 3.如果处于关闭状态(not running),输入命令: systemctl start firewalld.service 4.开启8080端口,输入命令: firewall-c 阅读全文
posted @ 2019-12-10 11:37 鲍攻城 阅读(2970) 评论(0) 推荐(0) 编辑
摘要: //获取input图片宽高 function getImageWidthAndHeight(id, callback) { var _URL = window.URL || window.webkitURL; $("#" + id).change(function (e) { var file, img; if ((file = this.file... 阅读全文
posted @ 2017-02-22 10:04 鲍攻城 阅读(3378) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><style>html,body { margin: 0; padding:0; height: 100%;}#container { 阅读全文
posted @ 2017-02-10 13:43 鲍攻城 阅读(705) 评论(0) 推荐(0) 编辑
摘要: $('#myModal').modal({backdrop: 'static', keyboard: false}); backdrop:static时,空白处不关闭. keyboard:false时,esc键盘不关闭. 阅读全文
posted @ 2017-01-22 16:55 鲍攻城 阅读(994) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .img-responsive { max-width: 100%; height: 0; padding-bottom: 40%; //div大小的比例 background-color:#ff0000; overflow: hidden; } .i 阅读全文
posted @ 2017-01-19 12:13 鲍攻城 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 伪静态是一种可以把文件后缀改成任何可能的一种方法,如果我想把PHP文件伪静态成html文件,这种相当简单的,下面来介绍nginx 伪静态配置方法有需要了解的朋友可参考。 nginx里使用伪静态是直接在nginx.conf 中写规则的,并不需要像apache要开启写模块(mod_rewrite)才能进 阅读全文
posted @ 2017-01-19 10:45 鲍攻城 阅读(9074) 评论(1) 推荐(0) 编辑