ICode9

精准搜索请尝试: 精确搜索
  • tkinter 让按钮居中显示2021-09-20 10:05:05

    def ask(self, title, text, btn_comfirm_name="确定", btn_cancel_name="取消", wraplength=400): self.master.title(title) tk.Label(self.middle, text=text, bg="#ffffff", wraplength=wraplength,justify="left")

  • 博客初始化2021-09-19 18:33:44

    选择主题,自定义背景css 背景url 借用随机图片api:   https://api.yimian.xyz/img   代码 /*simplememory*/ #google_ad_c1, #google_ad_c2 { display: none; } .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syn

  • 以下部基准线对齐一行内的icon和text2021-09-19 17:35:50

    TopAppBar(backgroundColor = green2) { var baseLine by remember { mutableStateOf(0f)} val topBaselinePadding = with(LocalDensity.current) { baseLine.toDp() } Icon( painter = painterResource(id = R.drawable.ic__home), contentDescripti

  • 微信小程序安全区域2021-09-13 18:00:45

    // 配置底部安全区域 page { //iOS 11 padding-right: constant(safe-area-inset-right); padding-bottom: constant(safe-area-inset-bottom); padding-left: constant(safe-area-inset-left); //iOS 11.2+ padding-right: env(safe-area-inset-right); padding-

  • H5移动端实现pad弹窗手上滑上移动,手下滑下移动(和高德地图上的展示框类似)2021-09-12 15:05:54

    一、背景 最近承接了一个需求,需要在H5页面移动端实现手滑动上移动,下滑下移动,我一看就用到了滑动的三个事件touchstart、touchmove、touchend,顾名思义,touchstart就是滑动起始的触发事件,touchmove就是滑动时的触发事件,touchend就是脱离滑动的触发事件 我录制的一个效果图,网上很

  • 移动端兼容iphonex2021-09-10 13:32:37

    1: 设置网页的头部标签(viewport-fit=cover") <meta name="viewport" content="width=device-width, viewport-fit=cover"> 2:将页面主体设置在安全区域内(padding-bottom/bottom/margin-bottom) .footer{ padding-bottom: constant(safe-area-inset-bottom);

  • ant-design-vue 描述列表descriptions修改label与content样式2021-09-10 12:03:08

    a-descpritions-item上绑定class不生效,使用/deep /deep/.ant-descriptions-row > th { padding-bottom: 8px !important; width: 20% !important; } /deep/.ant-descriptions-row > td { padding-bottom: 8px !important; width: 30% !important; }

  • css处理ios刘海屏问题2021-09-09 12:31:41

    .home{     padding-bottom:constant(safe-area-inset-bottom); //兼容IOS < 11.2     padding-bottom:env(safe-area-inset-bottom);//兼容IOS > 11.2 } ps:constant必须写在前面,env写在后面。 constant与env有4个预设变量: safe-area-inset-top //上方刘海 safe-area-inset

  • 深度学习框架Caffe学习系列(2):DarkNet 转战 Caffe 经验汇总2021-09-08 17:01:08

    --darknet 转战 caffe-- darknet的cfg文件转换成caffe的prototxt文件 > 卷积层重写: # darknet 的cfg文件 [convolutional] batch_normalize=1 filters=32 size=3 stride=1 pad=1 activation=leaky # caffe的prototxt书写 layer { name: "conv1" type: "Convolution"

  • 全屏DialogFragment2021-09-04 23:32:26

    全屏的dialog,并且还有弹出关闭动画,从底部弹出 class MyDialogFragment : DialogFragment() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //设置无标题,无背景色 setStyle(STYLE_NO_TITLE, R.s

  • CSS中的行盒(line-boxes)和行内盒子(line-box)2021-09-03 19:03:05

    CSS 盒模型line-boxes(行盒/行框)line-box (行内盒子)匿名内联元素非替换元素替换元素inline-block 元素的各条线的位置 line-height line-boxes结语 盒模型   说到盒模型我们都知道,盒模型有两种,一个content-box和一个border-box 。 关于盒模型。 盒模型 包含块详情

  • WordPress 底部新增固定联系方式2021-09-01 14:31:18

    源码扒于网络一平台,为WordPress 底部新增固定联系方式,具体样式可查看陈壶掌柜的网站:https://chenpot.com/tqn-chuanlu.html    源码如下,在footer.php里加入以下代码: <div class="qa_bottom"> <a href="https://anxins.cn/l/dn2kptJ8Jo" target="_blank"> <img sr

  • css 井布局2021-08-31 11:04:38

    <!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

  • torch.nn.ZeroPad2d2021-08-29 10:32:13

    CLASS torch.nn.ZeroPad2d(padding) Pads the input tensor boundaries with zero.For N-dimensional padding, use torch.nn.functional.pad(). Parameters padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 4-t

  • codeforces 1561 E. Bottom-Tier Reversals (构造)2021-08-26 18:34:15

    题目链接:http://codeforces.com/contest/1561/problem/E 首先发现如果偶数在奇数位置,奇数在偶数位置的话一定构造不出方案 考虑从大到小排序,因为只可以选择奇数前缀翻转,所以考虑每次将 \(i\) (奇数)和 \(i-1\) (偶数)放在一起构造 具体构造方案就是先将 \(i\) 翻转到 \(i-1\) 的左

  • 这是一个新的博客尝试2021-08-25 20:31:52

    又双叒叕新的开始 当然首先从美化模板开始 离开标签页状态1 获得焦点标签页状态2 首先申请博客以及js权限 接着用上其他大佬的hhh 模板地址——安装使用 看着真不错,hhh 以及最骚的 <script> window.onload=function(){ var fs=document.querySelector("#footer > div.

  • css 各种三角形2021-08-25 15:35:02

    .tag,.tag4,.tag3,.tag2{ width: 0; height: 0; border: 100rpx solid; } .tag{ border-left-color: red; border-right-color: transparent; border-bottom-color:transparent; border-top-color: transparent; } .tag2{ border-left-color: transparent;

  • 1561E - Bottom-Tier Reversals2021-08-25 13:29:45

    1561E - Bottom-Tier Reversals 题目链接 题意 给定一个长度为n(奇数)的排列a,对a进行若干以下操作,使得a成一个递增数列。 操作描述: 选定一个值p(奇数),将子序列 [ a

  • Vue之 清除默认样式 && 公共样式CSS文件2021-08-20 12:00:24

    vue项目绝绝子必用的公共CSS文件,保留一份吧 /* CSS清除默认样式代码 */ html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select { margin: 0; padding: 0; } * { box-sizing: border-box; } html, bod

  • Sticky Footer(粘性页脚)2021-08-17 18:00:21

    Sticky Footer:页脚footer永远在页面的底部,内容不够长时footer停留在底部,内容撑满时将footer往下挤,footer仍然停留在底部。   实现方式: 1、footer高度固定,利用绝对定位和padding-bottom .container { position: relative; min-height: 100%; heigh

  • test2021-08-16 12:00:12

    1 /* 2 * mystl.h 3 * 4 * Copyright (C) 2021 - lsc 5 * 6 * debug.h is free; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either versi

  • 段落2端对齐2021-08-13 10:03:51

    .artiCon p { margin-bottom: .3rem; word-wrap: break-word; word-break: break-all; text-align: justify; }

  • Uniapp 基础组件2021-08-04 20:29:52

    基础组件 text selectable开启长按可选微信小程序已废弃 user-select开启长按可选针对微信小程序 view hover-class指定按下去的样式类 button hover-class指定按下去的样式类 loading form-type用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件 open-type i

  • 【Jquery】------ Jquery 实现click 选中checkbox 多选(或一键选中全部或取消全部)实例代码2021-08-04 13:31:15

    1.Jquery 实现click 选中checkbox 多选(或一键选中全部或取消全部)实例代码 1.1 展示效果图:   2.2 css 样式:  <style> .bottom-block-layer-div{ left: 48rem; width: 60%; color: #fff; display: in

  • uni-app小程序优惠券镂空样式实现(完整代码!!!)2021-08-03 18:30:28

    优惠券半圆镂空效果利用渐变实现,核心代码示例: background: radial-gradient(circle at left top, transparent 6px, #ffd7d7 0) top left / 50% 100% no-repeat, radial-gradient(circle at right top, transparent 6px, #ffd7d7 0) top right / 50% 100% no-repeat; 效

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

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

ICode9版权所有