摘要: 给标签div设一个id值 <div id="aa"><div> a标签抓取id值,点击跳过去 <a href="#aa"></a> 阅读全文
posted @ 2019-02-21 15:34 钧一 阅读(6256) 评论(0) 推荐(1) 编辑
摘要: image里添加此属性 vertical-align:middle; 阅读全文
posted @ 2019-02-08 13:47 钧一 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1. 图片属性加 display: block; 把图片转换为块状元素显示。 2.图片的父级标签加上 font-size: 0; 3.图片属性上加 vertical-align: top; 1 和 3 不能同时使用 阅读全文
posted @ 2019-02-03 16:48 钧一 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 打开网页http://lbsyun.baidu.com 滑到最底下点击申请密钥 复制密钥,找到下列代码第八行把密钥两字换成自己的密钥即可 <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" / 阅读全文
posted @ 2019-01-28 10:44 钧一 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 在application\config.php里加 //以下为静态缓存配置 'app_debug' => false,//false为开启静态缓存模式 'html_cache_on' => true, // 开启静态缓存 'html_cache_time' => 7200, // 全局静态缓存有效期 阅读全文
posted @ 2019-01-25 18:22 钧一 阅读(1796) 评论(0) 推荐(0) 编辑
摘要: use think\cache; public function index(){ //Cache::get('name')获取缓存,如果name值不存在则返回false; if (Cache::get('name')){ echo "<script>alert('旧缓存');</script>" 阅读全文
posted @ 2019-01-25 15:34 钧一 阅读(6589) 评论(0) 推荐(0) 编辑
摘要: 视图层 route 中文 路由 <a href="{{route('cc',array('id'=>11111))}}">446454</a> 路由层 Route::get('当前路径','控制器@方法')->name('cc'); 控制器 use Illuminate\Http\Request;/ 阅读全文
posted @ 2019-01-24 17:30 钧一 阅读(3037) 评论(0) 推荐(0) 编辑
摘要: Laravel 框架使用 Composer 来管理其依赖性。所以,在你使用 Laravel 之前,你必须在你电脑上是否安装了 Composer。最简单的获取Composer的方式就是百度之,百度关键字“composer-setup.exe”即可。 注:安装Composer前要先确定电脑里有没有配置p 阅读全文
posted @ 2019-01-24 15:10 钧一 阅读(229) 评论(0) 推荐(0) 编辑
摘要: POST方式接收 视图层 <form action="/submit" method="post"> {{csrf_field()}} //必加 <input type="text" name="a"></input> <input type="text" name="b"></input> <in 阅读全文
posted @ 2019-01-24 11:53 钧一 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 在接收值前面加上这段代码 ,修改格式 header("Content-Type: text/html;charset=utf-8"); 阅读全文
posted @ 2019-01-23 17:45 钧一 阅读(126) 评论(0) 推荐(0) 编辑