会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鲍攻城的博客
有些路,只能一个人走。
博客园
首页
新随笔
联系
管理
订阅
2019年12月10日
linux centos7开放端口号的操作步骤
摘要: 1. 查看正在监听的端口 netstat -ntlp 2. 查看防火墙的状态 firewall-cmd –state 3.如果处于关闭状态(not running),输入命令: systemctl start firewalld.service 4.开启8080端口,输入命令: firewall-c
阅读全文
posted @ 2019-12-10 11:37 鲍攻城
阅读(2992)
评论(0)
推荐(0)
2017年2月22日
获取file上传图片的宽高(原图片的宽高)
摘要: //获取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 鲍攻城
阅读(3429)
评论(0)
推荐(1)
2017年2月10日
页面不够长怎么确保底部一直在屏幕最下方
摘要: <!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 鲍攻城
阅读(715)
评论(0)
推荐(0)
2017年1月22日
bootstrap模态框点击空白处不消失的属性
摘要: $('#myModal').modal({backdrop: 'static', keyboard: false}); backdrop:static时,空白处不关闭. keyboard:false时,esc键盘不关闭.
阅读全文
posted @ 2017-01-22 16:55 鲍攻城
阅读(1005)
评论(0)
推荐(0)
2017年1月19日
固定宽高度,让上传的图片不变形
摘要: <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 鲍攻城
阅读(571)
评论(0)
推荐(0)
Nginx伪静态配置和常用Rewrite伪静态规则
摘要: 伪静态是一种可以把文件后缀改成任何可能的一种方法,如果我想把PHP文件伪静态成html文件,这种相当简单的,下面来介绍nginx 伪静态配置方法有需要了解的朋友可参考。 nginx里使用伪静态是直接在nginx.conf 中写规则的,并不需要像apache要开启写模块(mod_rewrite)才能进
阅读全文
posted @ 2017-01-19 10:45 鲍攻城
阅读(9157)
评论(1)
推荐(0)
公告