ICode9

精准搜索请尝试: 精确搜索
  • 快速高斯模糊[剪裁版]2022-05-19 11:34:57

    高斯模糊函数的升级版本,带剪裁区域。 函数check_rect()是处理剪裁区域矩形。如果不打算剪裁,只需要设置left, top, right, bottom都为0就可以了;另外位图的存储格式是上下反转的,如果正常剪裁的话,只需要设置bottom为 -bottom即可。   bool check_rect(int width, int height, int&

  • echarts让设置legend宽度不生效2022-05-13 13:04:27

     仔细看源码发现问题了, 是 orient="horizontal" 的时候,只有width会起作用,height为auto;orient="vertical" 的时候只有height会起作用,width为auto。 legend: { orient: 'horizontal', bottom: 'bottom', left: 'center&

  • 03、课程接口2022-05-13 02:31:37

    1、课程分类接口 路由 # http://127.0.0.1:8000/api/v1/course/category/ from django.urls import path, include from rest_framework.routers import SimpleRouter from .views import CourseCategoryView router = SimpleRouter() router.register('category', Course

  • 微信公众号文章页面样式重置2022-04-29 02:00:46

    Desktop: Browser → DevTools → Elements → Console (Bottom), run: document.getElementsByClassName("rich_media_area_primary_inner")[0].style="max-width:1280px"; document.querySelectorAll("pre").forEach(e => {e.removeAttribute

  • css &连接符2022-04-26 19:32:00

    &是less、sass的语法,是一种连接符。 .el-row { margin-bottom: 20px; &:last-child { margin-bottom: 0; } } sass语法,等同于: .el-row { margin-bottom: 20px; } .el-row:last-child { margin-bottom: 0; } 另一种用法: .bordered { &.float { float: lef

  • unaipp扫一扫的时候ios底部会出现一部分空白的安全距离2022-04-18 10:02:03

    使用uniapp搭建的app,运行到苹果手机的时候会出现底部安全距离的问题     打开 manifest.json,找到下面的源码视图    找到 app-plus 配置项,添加以下代码: "safearea": { "bottom": { "offset": "none" } },    

  • uniapp设置页面背景颜色2022-04-16 23:01:50

    在uniapp中,给当前页面添加满屏背景颜色,需要给当前组件的根元素添加绝对定位,宽高百分百,然后设置背景颜色 <template> <view class="loginContent"> <view class="logo"> <image src="../../static/QTDD.jpg"></image> </view> <input

  • 溢出2022-04-01 22:35:05

    <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>溢出-陈敏芳</title> <style type="text/css"> .box{ width: 310px; margin: 10px; font-family: 楷体; } h2{ background: #fc0; height:

  • CSS学习--定位(position)2022-04-01 09:31:18

    position 指定一个元素在文档中的定位方式。top,right,bottom 和 left 属性则决定了该元素的最终位置。 position: static | relative | absolute | fixed | sticky; static 静态定位,正常流布局。· 此时top,right,bottom 和 left 属性无效relative以元素在文档的正常流位置为参照点,

  • VS2019中C#开发的bottom按钮在哪里?2022-03-20 21:32:59

    这两天刚接触学习C#,在创建应用程序时候发现找不到Button按钮,后来发现原来是在工具栏(Toolbox)下的常用WPF控件里面,如图所示: 找到后,双击即可进行放置即可。 另外本人水平有限,上述信息仅供参考,如有错误和不妥之处,请多多指教。

  • 外边距塌陷2022-03-07 18:02:52

    当上下相邻的两个块元素相遇时,如果上面的元素有下外边距margin-bottom 下面的元素有上外边距margin-top,则他们之间的垂直间距不是margin-bottom与margin-top之和 取两个值中的较大者这种现象被称为相邻块元素垂直外边距的合并(也称外边距塌陷)。     对于两个嵌套关系

  • Typoa 使用2022-03-06 23:01:03

    1.调整双倍换行为单倍换行 文件 -> 偏好设置 -> 外观 -> 打开主题文件夹 -> 编辑主题css文件,如night.css 修改css文件中的 margin-bottom 为0rem; .wp-video-shortcode { margin-top: 0; margin-bottom: 0rem; /* 24px */ }

  • Flutter 高效的组件HiFlexibleHeader封装2022-03-03 12:34:36

    封装可动态改变位置的Header,适用于需要局部刷新的应用 class HiFlexbleHeader extends StatefulWidget { final String name; final String face; final ScrollController controller; const HiFlexbleHeader({Key key, this.name, this.face, this.controller})

  • 42 搜索功能/3-搜索页面2022-03-02 21:04:02

    SearchCourse搜索页面 index.js import SearchView from "../views/SearchView"; { path: '/course/search', name: 'SearchView', component: SearchView } views/SearchView.vue (搜索页面) <template> <div

  • LayoutParser ------ 检测相关接口2022-03-01 10:32:45

    LayoutParser 文本版面分析工具包 作者:elfin   参考资料来源:GitHub 目录一、布局目标检测二、Interval区间布局查询三、LP的ocr文字识别四、BBox绘制五、模型选择六、提交自己的模型到LP项目 LayoutParser是一个版面分析工具包,它提供了布局检测、OCR识别、布局分析

  • 【前端学习 - CSS(12)margin 重叠】2022-02-21 20:35:01

    1. margin 重叠 margin 重叠的规则 当两个 margin 都是正值的时候,取两者的最大值;当 margin 都是负值的时候,取的是其中绝对值较大的,然后,从 0 位置,负向位移;当有正有负的时候,先取出负 margin 中绝对值中最大的,然后,和正 margin 值中最大的 margin 相加,即取和的绝对值 margin 重叠主

  • CSS – 冷知识 (新手)2022-02-18 10:04:39

    <img> extra 4px at the bottom 参考:  Extra 4px at the bottom of html <img> The mysterious 4px gap in between images 效果 红色部分多出来的 4px. 原因是 img 是 inline element, 它可以和 text 并排. 注意紫色图片的位置, 这个叫 vertical-align, 默认是 baseline,

  • 59. 螺旋矩阵II2022-02-17 16:03:54

    模拟 class Solution { public int[][] generateMatrix(int n) { /** * 定义上下左右边界,每次循环一圈后都要缩小边界 * 从1开始赋值 */ int[][] arr = new int[n][n]; int top = 0; int bottom = n - 1;

  • 54. 螺旋矩阵(c++)2022-02-05 23:31:03

    class Solution { public: vector<int> spiralOrder(vector<vector<int>>& matrix) { if(matrix.size() == 0 && matrix[0].size() == 0){ return {{}}; } int left = 0, right = matrix[0].size

  • 54. Spiral Matrix2022-02-04 03:01:36

    This is an exactly same problem with "59. Spiral Matrix II". I set every direction as a status, when one direction was implemented, the current status turns to the next status. Which different status, the scan direction is different, but all sca

  • 59. Spiral Matrix II2022-02-04 03:01:18

    This is the same problem with https://www.cnblogs.com/feiflytech/p/15862380.html public int[][] generateMatrix(int n) { int[][] matrix = new int[n][n]; int top = 0, bottom = n - 1, left = 0, right = n - 1; int num = 1;

  • 播放器实践2022-02-02 17:34:49

    此次完成播放器的设计。如果需要对一个box1的里面的盒子box2对其进行绝对定位position:absolute,这时候需要使用组合在box1中设置相对定位Position:relative,然后在box2中设置绝对定位position:absolute;这么做是为了让子类div在父类div中居中显示,总体是以盒子循环嵌套的方式设计。

  • html css 人物简单介绍2022-01-29 21:33:53

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=d

  • 【数组】16:螺旋矩阵Ⅱ2022-01-29 18:00:18

    文章目录 我的思路 Leetcode 59: 螺旋矩阵Ⅱ(python) 注:本人文章中有时有来自于各大佬的经验总结,仅供自身复习及学习,并无商业用途,若有时忘记标注作者及出处还请提醒,敬请见谅。 我的思路 这道题和之前做过的螺旋矩阵思路很是类似,只不过之前是按顺时针顺序自外而内依次

  • freeswitch修改mod_sofia模块并上报自定义头域2022-01-26 14:03:28

      概述 在之前的文章中,我们介绍了如何使用fs的event事件机制来获取呼叫的各种信息。 这些event事件一般都是底层模块定义好的,其中的各种信息已经很完备了,日常的开发需求都可以满足。 但是,总有一些场景是无法完全满足的,例如,在fs的注册事件中,就没有X-自定义头域的信息。 在定制

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有