display

Django测试平台开发(二)开发博客

╄→尐↘猪︶ㄣ 提交于 2020-01-17 22:08:18
Django 测试平台开发(二)开发博客 1、加载博客HTML页面 1、在templates目录下新建index.html文件 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>首页_杨青个人博客 - 一个站在web前端设计之路的女技术员个人博客网站</title> 6 <meta name="keywords" content="个人博客,杨青个人博客,个人博客模板,杨青" /> 7 <meta name="description" content="杨青个人博客,是一个站在web前端设计之路的女程序员个人网站,提供个人博客模板免费资源下载的个人原创网站。" /> 8 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 9 <link href="/static/css/base.css" rel="stylesheet"> 10 <link href="/static/css/index.css" rel="stylesheet"> 11 <link href="/static/css/m.css" rel="stylesheet"> 12 <script src="/static/js/jquery

前端学习(418):京东制作页面26中间模块划分

岁酱吖の 提交于 2020-01-16 03:22:20
index.css /* 中间模块 */ .grid{height: 480px;} .grid-coll1{width: 190px;height: 100%;background-color: pink;} .grid-coll2{width: 790px;height: 100%;background-color: skyblue;margin-left:10px;} .grid-coll3{width: 190px;height: 100%;background-color:purple;} normalize.css /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ /* http://necolas.github.io/normalize.css/ */ /** * 1. Change the default font family in all browsers (opinionated). * 2. Correct the line height in all browsers. * 3. Prevent adjustments of font size after orientation changes in * IE on Windows Phone and

前端学习(419):京东制作页面27左侧分类上

浪子不回头ぞ 提交于 2020-01-16 03:02:59
index.css /* 中间模块 */ .grid{height: 480px;} .grid-coll1{width: 190px;height: 100%;background-color: pink;} .grid-coll1 ul{padding: 20px 0;} .grid-coll1 ul li{padding-left: 12px;} .grid-coll2{width: 790px;height: 100%;background-color: skyblue;margin-left:10px;} .grid-coll3{width: 190px;height: 100%;background-color:purple;} normalize.css /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ /* http://necolas.github.io/normalize.css/ */ /** * 1. Change the default font family in all browsers (opinionated). * 2. Correct the line height in all browsers. * 3. Prevent

Halcon学习笔记之缺陷检测(一)

怎甘沉沦 提交于 2020-01-15 07:18:38
本文转载自 https://www.cnblogs.com/sleepwalker/p/3625351.html 学习收藏一下 例程:surface_scratch.hdev 说明:这个程序利用局部阈值和形态学处理提取表面划痕 代码中绿色部分为个人理解和注释,其余为例程中原有代码 *surface_scratch.hdev:extraction of surface scratches via local thresholding and morphological post-processing* dev_close_window() dev_update_window(‘off’) ***** *step: acquire image //获取图片 ***** read_image(Image,’surface_scratch’) //读入图片名为’surface_scratch’的图片 get_image_size(Image,Width,Height) //获取图像的尺寸:宽、高 //在坐标为(0,0)处打开一个图像窗口。其宽和高分别是Width和Width,窗口的句柄为WindowID dev_open_window_fit_image(Image,0,0,Width,Width,WindowID) //设置窗口中显示的字体颜色,大小,加粗,倾斜 set_display

PHP正则表达式及表单注册案例

走远了吗. 提交于 2020-01-14 12:02:10
正则表达式是一种具有特定模式的用来匹配文本的字符串 preg_match 匹配 $pattern = '/php/'; $subject = "php 是最好的编程语言,php 没有之一!"; $result = preg_match($pattern,$subject); if($result){ echo "<h1>匹配成功</h1>"; }else{ echo "<h1>匹配不成功</h1>"; } preg_match_all 匹配所有 $pattern = '/php/'; $subject = "php是最好的编程语言,不会php的程序员不是好程序员!"; $result = preg_match_all($pattern,$subject,$matches); var_dump($result); var_dump($matches); //preg_match=== //int 1 //array (size=1) // 0 => string 'php' (length=3) //preg_match_all ==== //int 2 //array (size=1) // 0 => // array (size=2) // 0 => string 'php' (length=3) // 1 => string 'php' (length=3) preg

How to replace on div with another on hover (CSS ONLY)

主宰稳场 提交于 2020-01-14 10:35:52
问题 I have two boxes that one is hidden and one is visible. I want to make it work in a way that when the default box is hover, it fades out and the box with display none gets visible. Here is the code that doesnt work the way I want it because the once box one is hover, it is still visible, while i want it to go display: none . .box1, .box2{ width:100px; height 100px; border:1px solid black; text-align:center; } .box1{ display: block; } .box2{ display: none; } .box1:hover ~ .box2{ display:block;

Why does applying `inline-block` force dimensions onto my span element?

[亡魂溺海] 提交于 2020-01-14 03:42:07
问题 So I have this <span> element, and I wanted to apply a webkit-transform to it. Unfortunately, I have to specify the display attribute to be inline-block in order for this to work. span { display: inline-block; } But once I apply this attribute, the entire span shifts. You'll note that before I set it, the <span> element has it's dimensions automatically calculated: But once I do set the property, the dimensions are computed, and they are slightly different from what is automatically

SV---数组定位方法

时光毁灭记忆、已成空白 提交于 2020-01-14 02:31:38
/ / 数组的定位方法,这些方法的返回值是一个队列 / / 方法unique返回的是数组中具有唯一值得队列,即会删去重复值 / / min max unique / / 补充一个问题:$ display 的使用应该是必须在initial模块中 / / 使用index函数,返回的是元素的位 / / 里面使用的索引变量item并不一定要是item,x , m , k等都可以(但是要先声明,再使用) module test ; int f[ 6 ] = '{1,6,2,6,8,6}; int d[] = '{9,1,8,3,4,4}; int q[$] = { 1 , 3 , 5 , 7 } ; int tq[$] , i ; int count = 0 , total ; initial begin tq = q. max ; $ display ( "q.max= %p" , tq ) ; / / 最大值 tq = d. min ( ) ; $ display ( "d.min = %p" , tq ) ; / / 最小值 / / 这里的tq是队列,提示是未打包,不能使用%d的格式打印,要用%p ; tq = f.unique ( ) ; / / 删除重复元素 $ display ( "f.unique:" ) ; $ display ( tq ) ; / / 找出大于 3 的元素

Ie兼容问题记录

半腔热情 提交于 2020-01-13 15:29:36
最近项目需要 IE 兼容,记一下 遇到的IE 的兼容问题 1 flex 布局 的兼容写法 .compatible(@params, @value) { -webkit-@{params}: @value; -moz-@{params}: @value; -ms-@{params}: @value; -o-@{params}: @value; @{params}: @value; } .styleDisplay() { display: box; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; } 使用: .styleDisplay(); .compatible(justify-content, space-between); 2 IE 兼容的时间 变成 NAN 问题 因为 后台返回的时间格式 为 2020-1-1 格式, 谷歌 new Date() 转换无问题,IE 无法识别 “-” , 需要自己手动去转换成 “/”. var date="2014-01-01 12:11:12"; Date.parse(date.replace(/-/g,"/")); 3 上传图片的路径问题 谷歌不会带有 绝对路径 IE 会带有.

HTML5 & MUI 界面样式

流过昼夜 提交于 2020-01-13 13:25:05
什么?这是要做前端的节奏吗?只要公司有需要,我分分钟变身、前端、美工、UI、交互、后端、数据库管理员......快速学习、快速响应,快速适应。公司需要我干啥,我就干啥,而我存在于公司的意义就是利用所学的东西帮公司解决问题......事实上,如果让一个人来搞定整个项目包括移动端、PC端等等,那你还不是被逼得啥都会。 垂直居中+自动换行 样式效果如下所示,当文字没有超出一行时,显示如“备注信息”,当文字超出一行时,显示如“维修地点” HTML代码如下: <div class="mui-input-row multi-line"> <div class="box label-right"> <div class="div-leftauto">维修地点</div> <div class="wrap">广东省深圳市南山区西丽街道桃源路1001号</div> </div> </div> css样式如下: /*不固定高宽div垂直居中的方法:其它页用*/ .box {width: 100%;height: 40px;border: 1px solid #FFF;display: table;margin-right:5px;} .wrap{display: table-cell; vertical-align: middle; width: 100%;padding: 6px 0px;line