首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏代码手工艺人

    Background Fetch

    Background Fetch 是iOS7带来的非常Cool的新特性,开启Background Fetch的App会被系统在合适的时机执行后台任务的代码。 实现Background Fetch的步骤也是非常的简单,下面就来看一下。 1、开启Background Fetch 给一个App开启Background Fetch非常的简单,可以总结为三个步骤: #Step 1 进入Project设置 -> Capabilities -> 2、模拟Background Fetch 创建了Background Fetch后,怎么来方面的模拟和测试呢? 有两种方式,一种是在App被挂起后,系统执行Background Fetch,另外一种是App没有在运行,被系统唤醒执行Background Fetch方法。

    3K30发布于 2021-09-07
  • 来自专栏web

    background-color和background-image问题

    今天撸码的时候发现需要background-color和background-image 一起用,才开始考虑两个可不可以一起用  查阅多方资料才知道可以写成background:color url(); 无论是background:red;         background:url(); 还是background-color:red;      background-image:url();    

    99020发布于 2018-06-28
  • 来自专栏河湾欢儿的专栏

    background样式

    background样式 background-image: url("a.jpg"); /默认状态下是平铺的/ background-repeat: no-repeat; /背景不平铺/ background-color : red; /背景图片比背景颜色层级高/ background-repeat: repeat-x; /背景水平平铺/ background-repeat: repeat-y; /背景垂直平铺 / background-position: 10px 10px; /背景定位/ 第一个参数水平,第二个参数垂直 left、center、right top、center、bottom background-attachment : fixed; /背景固定/ background-attachment: scroll; /默认样式滚动/ 合写 background: red url("a.jpg") no-repeat

    1.5K20发布于 2018-09-06
  • 来自专栏MyTechnology

    CSS背景(background)

    背景颜色(color) 语法: background-color:颜色值; 默认的值是 transparent 透明的 背景图片(image) 语法: background-image : none 背景图像固定 背景简写 background:属性的值的书写顺序官方并没有强制标准的。 为了可读性,建议大家如下写: background: 背景颜色 背景图片地址 背景平铺 背景滚动 背景位置; 语法: background: transparent url(image.jpg) repeat-y 背景透明(CSS3) 语法: background: rgba(0, 0, 0, 0.3); 最后一个参数是alpha 透明度 取值范围 0~1之间 我们习惯把0.3的0省略掉 这样写 background 背景总结 属性 作用 值 background-color 背景颜色 预定义的颜色值/十六进制/RGB代码 background-image 背景图片 url(图片路径) background-repeat

    1.9K20发布于 2020-07-31
  • 来自专栏快乐阿超

    css background图片

    MDN:https://developer.mozilla.org/zh-CN/docs/Web/CSS/background 首先我们可以使用 background: url(https://waibi.oss-cn-chengdu.aliyuncs.com /2020-06-01/head.jpg); 来指定背景图片 如果我们需要修改透明度,则可以使用其可以叠加的特性 background: linear-gradient(rgba(0,0,0,80%)

    2.6K30编辑于 2022-08-21
  • 来自专栏TomatoCool

    background-attachment属性

    通过background-attachment: fixed能够做出滚动视差的效果

    27720编辑于 2023-07-30
  • 来自专栏向全栈出发

    【CSS】背景样式:background

    div{ background: #00FF00 url(bgimage.gif) no-repeat fixed top; } 可以按顺序设置如下属性: background-color background-position background-size background-repeat background-origin background-clip background-attachment background-image background 值 作用 CSS版本 background-color 规定要使用的背景颜色。 1 background-position 规定背景图像的位置。 1 background-size 规定背景图片的尺寸。 3 background-repeat 规定如何重复背景图像。 1 background-origin 规定背景图片的定位区域。 3 background-clip 规定背景的绘制区域。

    2.1K30发布于 2021-05-08
  • 来自专栏天天

    background、转换、过渡

    1.background //---------------------------------- background: url("CSS3%20DAY%2003/images /baby0.jpg") no-repeat; /*cover:不改变图片的比例,完全放大填充,溢出隐藏*/ /*background-size: cover /*100% 100%:改变图片的比例,双边都放大到100%*/ background-size: 100% 100%; //------------- : padding-box;*/ /*边框开始有背景图*/ /*background-origin: border-box;*/ /*只有内容区域有背景图*/ background-origin: content-box; //---------------------------

    1.5K30发布于 2018-09-29
  • 来自专栏h5学习笔记

    CSS 背景(background)

    background-color 背景颜色 background-image 背景图片地址 background-repeat 是否平铺 background-position 背景位置 background-attachment 背景固定还是滚动 背景的合写(复合属性) background:背景颜色 背景图片地址 背景平铺 背景滚动 背景位置 背景图片(image) 语法: background-image : none 才可以多背景)可以和 background-color 连用。 背景简写 background属性的值的书写顺序官方并没有强制标准的。 background-image: url('images/gyt.jpg'); background-size: 300px 100px; /* background-size

    2.8K20发布于 2020-09-30
  • 来自专栏深度学习与计算机视觉

    background modeling:ViBe

    简介 2009 年,Marc Van Droogenbroeck 等人提出了一种新的背景建模法: ViBe(Visual Background Extractor)算法。 ViBe: A universal background subtraction algorithm for video sequences 原理 描述背景 既然是背景建模,就必须解决一个问题,那就是怎么描述背景

    82320发布于 2021-07-19
  • 来自专栏Devops专栏

    CSS background属性

    属性解释 background属性是css中应用比较多,且比较重要的一个属性,它是负责给盒子设置背景图片和背景颜色的,background是一个复合属性,它可以分解成如下几个设置项: background-color 设置背景颜色 background-image 设置背景图片地址 background-repeat 设置背景图片如何重复平铺 background-position 设置背景图片的位置 background-attachment )”是设置background-image;“no-repeat”是设置background-repeat;“left center”是设置background-position;“fixed”是设置background-attachment 设置background-repeat: repeat-x;即可。 ? ---- 如果需要平铺垂直方向的内容呢?设置background-repeat: repeat-y;即可。 ? 其实默认就可以了,设置background-repeat: repeat; ? background-position 设置背景图片的位置 ?

    1.8K10发布于 2019-06-02
  • 来自专栏java大数据

    css当中background的问题

    3.background的问题 例 1.3 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312 :url(7.gif);height:300px; <em>background</em>-repeat:  no-repeat;<em>background</em>-position: 5 5; ">有关background的问题, ie8和FF是兼容的,测the image is at 5,5

    ge
    ge
             ge
      ge
    测</div

    1.1K20发布于 2020-11-27
  • 来自专栏用户7873631的专栏

    详解:40 background-repeat

    reset.css"/> <style type="text/css"> div{ width: 500px; height: 500px; margin:100px; background-image :url(images/king1.jpg); } .box1{ background-repeat: repeat;//这种垃圾我就不说了。 } .box2{ background-repeat:space;/*图片尽可能多放进去(行3个,列三个),剩下是空隙的。 */ } .box3{ background-repeat:round;/*行三个列三个都会至容器大小,完美适合的哈*/ } </style> </head> <body> <div

    1.1K10发布于 2020-10-28
  • 来自专栏用户7873631的专栏

    详解:44 background-clip

    DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>background-clip</title> <link type="text/css"> div{ width: 200px; height: 100px; border:20px dashed rgba(0,0,0,.8); background :url(images/king.jpg) no-repeat pink; padding:30px; margin:20px; } .box1{ background-clip :border-box;/*border以外的部分裁剪*/ } .box2{ background-clip:padding-box;//padding以外的 } .box3{ background-clip:content-box; } </style> </head> <body>

    box1
    <div class="box2

    63420发布于 2020-10-28
  • 来自专栏用户7873631的专栏

    background-size之详解

    : url("images/dog.jpg") no-repeat; } ul li:nth-child(2){ background: url( ; /* 第一个参数:宽度 第二个参数:高度 */ background-size :100% 80%; } ul li:nth-child(4){ background: url("images/dog.jpg") no-repeat ; /* 第一个参数:宽度 第二个参数:高度 */ background-size :cover; } ul li:nth-child(7){ background: url("images/dog.jpg") no-repeat

    85110发布于 2020-10-28
  • 来自专栏全栈程序员必看

    Make autofill background transparent

    https://jsfiddle.net/ju3g47jh/14/ <div class=’select_custom_background’> <input type=’text’ class=” placeholder=” name=”addrBox” id=”addrBox”/>

    div.select_custom_background { background-image important; width: 175px } input { background-color: transparent !

    75510编辑于 2022-09-13
  • 来自专栏用户7873631的专栏

    详解:43 background-origin

    600px; height: 400px; border:20px dashed rgba(0,0,0,.3); padding:20px; margin:30px; background :url(images/king.jpg) no-repeat left top #abcdef; } .padding-box{ background-origin: padding-box ;/*padding与content*/ } .border-box{ background-origin: border-box;/*border与padding*/ } .content-box { background-origin: content-box;/*内容*/ } </style> </head> <body>

    </div

    40410发布于 2020-10-28
  • 来自专栏全栈程序员必看

    左右presentViewController经background黑问题

    google之后,在stackOverflow上找到几个比較靠谱的答案~ Why Does presentModalViewController:animated: Turn The Background

    67220编辑于 2022-07-06
  • 来自专栏全栈程序员必看

    android于src和background差额

    大家好,又见面了,我是全栈君 ImageView中XML属性src和background的差别: background会依据ImageView组件给定的长宽进行拉伸,而src就存放的是原图的大小。 注意:控制的图片为资源而不是背景,即android:src=”@drawable/logo”,而非android:background=”@drawable/logo”。

    1.5K10编辑于 2022-07-06
  • 来自专栏深度学习与计算机视觉

    background modeling:MOG2

    MOG2背景建模方法发表于2004年,由Zoran Zivkovic提出,MOG2的改进过程大致是,单高斯背景建模,混合高斯背景建模,MOG到MOG2。

    1.4K20编辑于 2021-12-24
  • 领券