padding

闲来无事写了一套 Jenkins 主题样式:刀锋

北慕城南 提交于 2019-12-06 04:32:45
背景 Jenkins 的前端 CSS 样式坚挺了这么多年已经觉得腻的不行了,于是想换个风格缓解一下视觉疲劳,便有了这个项目。由于本人不是前端,所以很多只是随便改改,有些复杂的需求也实现不了,但是总的来说,使用还是将就能用。当然,由于新版本项目还是热乎的,所以肯定会有很多兼容性的问题,也欢迎有机会的人能够在评论区或者其他方式给我提出来。 配置 Jenkins 自定义 CSS 样式 做这个之前,首先需要安装一个插件: Simple Theme Plugin 安装完成后重启 Jenkins,此时在系统配置里面: 可以找到我们安装的插件: 第一种方式: 我们可以通过 CSS URL 的形式导入样式: https://github.com/KU4NG/Jenkins-Theme/blob/master/css/jenkins.css 这样你能保证代码是最新的,但是问题就是 github 可能不是很稳定,当然你可以可以下载下来本地部署,然后填写改 css 的地址。 另外一个也是我比较推荐的,使用 Extra CSS 选项,将 CSS 文件内容粘贴到这里保存: 第一版内容如下,可以直接用: *{font-size:13px;font-weight:normal;color:#161823!important;letter-spacing:1px}div{border-radius:0

Cocoa autolayout constraint - programmatic padding of variable number of views

折月煮酒 提交于 2019-12-06 04:14:42
问题 I want to be able to add new views to a superview but so that they keep a constant vertical distance between each other. For that I tried to programmatically set up a constraint for each view but I could not figure out how to do it. The problem is I do not know beforehand the number or the relative position of the views. Is there a way to programmaically set up a constraint for each view so that regardless of whatever other views they neighbor, autolayout will keep the constant spacing

jquery实现导航栏切换

浪尽此生 提交于 2019-12-06 03:23:28
< div class = "menu-1-right" id = "menu-1-right" > < div class = "menu-1-right-li" > < a href = "#" id = "sy" > 首页 </ a > </ div > < div class = "menu-1-right-li item-current" > < a href = "#" id = "mpmq" > 企业电商 </ a > < img src = "../images/dh_dbtb.png" class = "dh_dbtb" /> </ div > < div class = "menu-1-right-li" > < a href = "#" id = "qysq" > 产业商圈 </ a > < img src = "../images/dh_dbtb.png" class = "dh_dbtb" /> </ div > </ div > < div class = "menus" id = "menus" > < div class = "menus_div" > < div class = "slide-box" > < div class = "ej_menus" id = "con_one_1" > < ul style = "padding-right

CSS基础-background的那些属性

限于喜欢 提交于 2019-12-06 03:20:45
background的那些属性 background:背景的意思 常用的六个属性 1.background-color:背景颜色 2.background-image:背景图像 3.background-position:图片位置 4.background-repeat:图片是否重复 5.background-attachment:图片定位(fixed,scroll) 6.background-clip: 背景裁剪。有三个属性值为 border-box(图片或者颜色从边框开始); padding-box(图片或者颜色从padding部分开始); content-box图片或者颜色从content部分开始); 疑惑点1 :图像和颜色到底是从边框开始的?还是从内容开始的? 解答 :背景图像和颜色默认 是从border开始铺上去的。如果没有border就从下一级开始。 <!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> <style> body{ background: #000; } #box{ width: 100px; height:100px; background: url(../../image/1.jpg); padding: 50px; border:10px dashed rgba

Java Cipher - AES Padding Problem

非 Y 不嫁゛ 提交于 2019-12-06 02:49:05
问题 I am using a AES cipher with a 16 byte block size. If I try and encrypt a 16 byte string I have no problems, but any other length not a multiple of 16 is throwing an exception. I know with 3-DES you can specify a padding type as part of the algorithm and it's handled with no extra work (e.g. DES/CBC/PKCS5Padding), but is there a way to specify this with AES? Or do I need to pad the pytes manually to a multiple of 16, and then strip them when I decrypt? Here is an abbreviated code sample.

SSD Keras版源码史上最详细解读系列之模型源码解析

孤街醉人 提交于 2019-12-06 01:40:24
SSD Keras版源码史上最详细解读系列之模型源码解析 模型源码keras_ssd300.py解析 模型源码keras_ssd300.py解析 因为前面训练和测试的模型是用 ssd300 的,所以这次就解析这个模型,至于其他的都是差不多的,原理一样的,我们先来看看这个文件 keras_ssd300.py : 其实里面是定义了ssd300的一个方法来获取模型: def ssd_300(image_size, n_classes, mode='training', l2_regularization=0.0005, min_scale=None, max_scale=None, scales=None, aspect_ratios_global=None, # 4 6 6 6 4 4 有1的会增加一个框 aspect_ratios_per_layer=[[1.0, 2.0, 0.5], [1.0, 2.0, 0.5, 3.0, 1.0/3.0], [1.0, 2.0, 0.5, 3.0, 1.0/3.0], [1.0, 2.0, 0.5, 3.0, 1.0/3.0], [1.0, 2.0, 0.5], [1.0, 2.0, 0.5]], two_boxes_for_ar1=True, steps=[8, 16, 32, 64, 100, 300], offsets=None,

Firefox add's 2px padding in a submit button

本小妞迷上赌 提交于 2019-12-06 01:15:10
问题 Hi I seem to be having some problems with Firefox adding 2 extra pixels of padding in a submit button.I have tested this in chrome and IE9 and both browsers render the code ok,Firefox seems to be adding 2 pixel padding at the bottom to the submit button with the key background on the top-right corner.Here is the website: www.thanathos.host22.com This is the code for the site: <form method="post" action="index.html"> <input type="text" value="Username"/> <input type="text" value="Password"/>

纯css实现高度与宽度成给定比例的效果

♀尐吖头ヾ 提交于 2019-12-06 00:21:08
这几天做一个列表,要求是在每一个item中的图片都能按照规定的比例显示.对于image标签来说,如果是自然的显示原图片的比例的话, 下面的css代码可以满足:( 在booststrap中,也是下面的写法) .img{ display: block; max-width: 100%; height: auto; } 前面的话 描述 但是现在要求不一样了,比如我要求每个图片必须按照比如4:3的比例显示出来,不用在乎图片是否被拉伸变形.这样的目的是实现图片的响应不同设备,保证图片等比例.如果仅仅通过width和height属性是不到的,即便height设置成百分比. 可以设置的height属性的元素的高度基于包含它的块级对象的百分比高度。 当然,采用js的办法肯定是可以解决的,但是用了js后,总是有一个被强X的感觉,((⊙o⊙)…).不想用js怎么办. 解决 经过一番谷歌之后,还是找到了我想要的结果,参考的文章在最后.人家说的比我是详细,多多向人家学习~~ 文中作者采用的方法是利用了 padding-top/padding-bottom 属性,根据他的解释, `padding'如果是百分比的话,那这个百分比是相对于其父元素的宽度而言的 而作者使用到了另一个属性 overflow ,另外,在计算 Overflow 时,是将元素的内容区域(即 width / height 对应的区域)和

CSS 盒子模型 Box Model

狂风中的少年 提交于 2019-12-06 00:20:41
CSS 盒子模型概述 element : 元素。 padding : 内边距,也有资料将其翻译为填充。 border : 边框。 margin : 外边距,也有资料将其翻译为空白或空白边。 盒子模型有两种,分别是 IE 盒子模型和标准 W3C 盒子模型。 盒子模型是CSS中一个重要的概念,理解了盒子模型才能更好的排版。其实盒子模型有两种,分别是 IE 盒子模型和标准 W3C 盒子模型。他们对盒子模型的解释各不相同,先来看看我们熟悉的标准盒子模型 和上面看到的图有些区别,这里把各属性支持也画出来。 IE 盒子模型的范围也包括 margin、border、padding、content,和标准 W3C 盒子模型不同的是:IE 盒子模型的 content 部分包含了 border 和 pading。 1、W3C的标准Box Model: /*外盒尺寸计算(元素空间尺寸)*/ Element空间高度 = content height + padding + border + margin Element 空间宽度 = content width + padding + border + margin /*内盒尺寸计算(元素大小)*/ Element Height = content height + padding + border (Height为内容高度) Element Width

高级UI晋升之自定义View实战(八)

我是研究僧i 提交于 2019-12-06 00:15:30
更多Android高级架构进阶视频学习请点击: https://space.bilibili.com/474380680 本篇文章自定义流式布局来进行介绍: 一般常见的流式布局由两种,一种是横向的个数固定,列表按照竖向进行排列。另一种是横向先排,横向排满之后再竖向排列。而本框架实现是以第二种方式进行处理。 ​ 那么这个框架到底该如何使用呢? 一、引入资源 这里提供两种方式,引入资源文件。 1、在build.gradle文件中添加以下代码: allprojects { repositories { maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.zrunker:ZFlowLayout:v1.0' } 2、在maven文件中添加以下代码: <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> <dependency> <groupId>com.github.zrunker</groupId> <artifactId>ZFlowLayout</artifactId> <version>v1.0</version> <