display

VUE实现Studio管理后台(完结):标签式输入、名值对输入、对话框(modal dialog)

假装没事ソ 提交于 2020-03-10 09:51:13
一周的时间,几乎每天都要工作十几个小时,敲代码+写作文,界面原型算是完成了,下一步是写内核的HTML处理引擎,纯JS实现。本次实战展示告一段落,等RXEditor下一个版本完成,再继续分享吧。 剩下的功能:标签式输入、名值对输入、对话框(modal dialog),边框输入,全部完成。 css class输入,样式跟属性输入,效果: 对话框(model dialog效果) 前几期功能效果总览: 标签输入框用来输入CSS class,名字一如既往的好听,就叫RxLabelInput吧。 输入值一个数组,因为有多处要操作数组,增、删、改、克隆、比较等。比较好的一个方式是把Array类用继承的方式重写一下,把这写方法加到里面。但是RXEidtor内核用纯JS实现,并放在一个iFrame里面,它跟主界面只能通过windows message传递数据,带有方法的类无法作为消息被传递,暂时先不用这个方法,只把相关功能抽取成独立函数,放在valueOperate.js里面。 如果以后数组操作量更大,再考虑转成一个通用的数组类。 前几期介绍过,使用计算属性changed来标识数据是否被修改过,changed计算属性内部,需要比较两个值是否相等,普通字符串不会有问题,要比较数组用这样的方式最方便,先排序、转成字符串、比较字符串: aValue.sort().toString() === bValue

[原]《Web前端开发修炼之道》-读书笔记CSS部分

拥有回忆 提交于 2020-03-10 05:31:46
如何组织CSS-分层 应用 css 的能力分两部分:一部分是css的API,重点是如何用css控制页面内元素的样式;另一部分是css框架,重点是如何对 css 进行组织。如何组织 css 可以有多种角度,例如按功能划分,或者按区块划分。这里讲一下 base.css + common.css + page.css 的组织方法。将网站内的所有样式,按照职能分成三大类:base、common、page,这三者是层叠结构。 1、base 层-精简通用 位于三者的最底层,提供 css reset 功能和粒度最小的通用类——原子类。这一层会被所有页面引用,是页面样式所需依赖的最底层,不同风格的网站可以使用同一个 base 层,所以,应具有高度可移植性,力求精简和通用。该层相对稳定,基本不需要维护,可以简单地放在一个文件里,如 base.css。 css reset 即一开始就将浏览器的默认样式全部去掉,就是通过重新定义标签的样式,“覆盖”掉浏览器提供的默认样式。可以将常用的标签显式地罗列出来,避免使用“*”,如来自于 YUI 的部分 css reset 的代码: /*CSS reset*/ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin

HTML的各个标签的默认样式

不问归期 提交于 2020-03-08 09:33:26
head{ display: none } body{ margin: 8px;line-height: 1.12 } button, textarea,input, object,select { display:inline-block;} ol, ul, dir,menu, dd{ margin-left: 40px } i, cite, em,var, address{ font-style: italic } //块级元素 html, body, div,ol, p, ul, h1, h2,h3,h4,h5, h6, address,blockquote, form, dd,dl, dt, fieldset, frame, frameset,noframes,center, dir, hr, menu, pre { display: block } //列表元素 li{ display:list-item } ol{list-style-type: decimal } ol ul, ul ol,ul ul, ol ol { margin-top: 0; margin-bottom: 0 } //标题 h1{ font-size:2em; margin: .67em 0 } h2{ font-size:1.5em; margin: .75em 0 } h3{ font

小米商城首页的实现

假装没事ソ 提交于 2020-03-08 04:43:15
小米首页 效果图 html代码 由于代码过多,上传困难。 请访问链接:https://share.weiyun.com/5BWIENo 小米商城源文件 里面附带完整的源码文件 css代码 * { margin : 0 ; padding : 0 ; } ul,ol,li { list-style : none ; } img { display : block ; width : 100% ; } a { text-decoration : none ; } h1,h2,h3,h4 { font-size : 16px ; } body { font-size : 14px ; color : #000000 ; font-family : 宋体 , 微软雅黑 ; } html, body { width : 100% ; } /* css common */ .l { float : left ; } .r { float : right ; } .clear:after { content : "" ; display : block ; clear : both ; } .container { width : 1226px ; margin : 0 auto ; position : relative ; } .container-fluid { position :

商城项目日结5

早过忘川 提交于 2020-03-07 03:53:57
今天完成了商城的购物车功能 ,并细化了css样式使页面看起来更加舒适。 项目地址 购物车代码如下: html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="../lib/bootstrap/dist/css/bootstrap.css"> <link rel="stylesheet" href="../css/reset.css"> <link rel="stylesheet" href="../css/common.min.css"> <link rel="stylesheet" href="../css/index.css"> <link rel="stylesheet" href="../css/footer.css"> <link rel="stylesheet" href="../css/cart.css"> </head> <body style="background-color: #fff;"> <!-- 头部 --> <div class=

Wayland v/s Xorg : How Are They Similar & How Are They Different

女生的网名这么多〃 提交于 2020-03-06 11:31:07
原文: https://www.secjuice.com/wayland-vs-xorg/ Earlier this year Ubuntu 18 LTS was fully released. When I first heard that Ubuntu 18 will be using Xorg as default , it came to me by surprise. Afterall Xorg has some security concerns, and choosing to continue with it was hard to swallow. When I started to dig into this, I realised why the community was going with Xorg instead of Wayland as default. In this article, I will explain the issues I found during my analysis. Before going over the issue with the Xorg it is vital to understand the working mechanisms and architecture of both Xorg and

第二十九节 display的none属性

我的梦境 提交于 2020-03-05 23:58:01
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 <!-- 使用display的none属性设置悬浮显示 --> 8 .con{ 9 width: 300px; 10 height: 300px; 11 } 12 13 .box{ 14 width: 100px; 15 height: 100px; 16 background-color: gold; 17 display: none; 18 } 19 20 .con:hover .box{ 21 display: block; 22 } 23 </style> 24 </head> 25 <body> 26 <div class="con"> 27 <h3>文字的标题</h3> 28 <div class="box">标题文字的说明</div> 29 </div> 30 </body> 31 </html> 来源: https://www.cnblogs.com/kogmaw/p/12423721.html

《基于MFC的OpenGL编程》Part 12 Creating and Using Display Lists

末鹿安然 提交于 2020-03-05 23:05:43
本文对 第 11 篇文章 进行修改,使用显示列表来存储渲染命令。 显示列表 OpenGL provides a facility to create a preprocessed set of OpenGL commands called a display list. Creating a display list is a straight forward process. We just have to delimit the display list code with glNewList and glEndList. The display list is named by an integer and this name is used to call the list to be executed later on. Display lists are very useful for scenes which have lot of geometry that don't change in from frame to frame. If we have to rerender something that doesn't change it is not worth going through all the calculations required once

selenium 怎么处理display:none

末鹿安然 提交于 2020-03-05 00:41:25
页面HTML是这样的: .... < div class=" cf w index-middle" > < div id=" li" class=" flea r li" > < a class=" pic" href=" http://XXX.com/" > </ a> < div class=" mask" style=" display: none; opacity: 0.3;" > < a href=" http://XXX.com/" > </ a> </ div> < a class=" text-a" href=" http://XXX.com/" style=" display: none; opacity: 1;" > 查看</ a> </ div> ..... 处理方法是用js把隐藏的显示出来,方法如下: JavascriptExecutor j=(JavascriptExecutor)driver; j.executeScript("document.getElementById('li').style.display='block';"); driver.findElement(By.xpath("Xpth路径")).click(); 来源: https://www.cnblogs.com/nonoing/p/4991531.html

display:inline-block/text-align:justify下列表的两端对齐布局

江枫思渺然 提交于 2020-03-04 23:05:30
为了表述上逻辑清晰。我们先把IE6和IE7浏览器晾在一边,看看IE8+浏览器以及现代浏览器下如何 display:inline-block + text-align:justify 实现列表元素的两端对齐。 说穿了其实很简单,我们不妨以最常见的列表标签- ul , li 标签举例,要实现 li 列表的两端对齐,直接下面这点CSS代码就OK了: ul{text-align:justify;}li{display:inline-block;} 简单得让人当场吐血三升。 唯一需要注意的就是列表元素 首尾标签留空 (或换行) 不能够上一个标签组的结束标签与下一个标签组的其实标签连在一起 不仅如此,对于IE8浏览器,列表元素不能处在 font-size:0 的环境下,至少code<font-size:1px,因为IE8浏览器 font-size:0 或直接把换行空格或普通空格抹掉而无法实现两端对齐效果。 ok,下面是重头戏了,纠缠不清的IE6/IE7浏览器。显然上面的 ul , li 样式组合在IE6/7浏览器下是行不通的,即使你使用hack让IE6/7下的 li 标签有类似于 display:inline-block 的特性也是没有作用的。那么如何才能让IE6/7浏览器也有列表元素支持 text-align:justify 属性呢?经过我反复试验与调试,总结了两点: inline标签化