随笔分类 -  CSS

摘要:1. 弹性盒子 概念 CSS3 弹性盒(Flexible Box 或 flexbox),是一种当页面需要适应不同的屏幕大小以及设备类型时确保元素拥有恰当的行为的布局方式。 引入弹性盒布局模型的目的是提供一种更加有效的方式来对一个容器中的子元素进行排列、对齐和分配空白空间。 2. CSS3 弹性盒子内 阅读全文
posted @ 2020-08-14 18:15 lvlin241 阅读(166) 评论(0) 推荐(0) 编辑
摘要:1. text-overflow 2. white-space text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; //溢出不换行 阅读全文
posted @ 2020-06-09 20:41 lvlin241 阅读(794) 评论(0) 推荐(0) 编辑
摘要:CSS伪元素 阅读全文
posted @ 2020-05-27 15:21 lvlin241 阅读(78) 评论(0) 推荐(0) 编辑
摘要:pointer-events: none; 阅读全文
posted @ 2020-04-24 21:46 lvlin241 阅读(563) 评论(0) 推荐(0) 编辑
摘要:属性设置为display:inline或display:inline-block 阅读全文
posted @ 2018-11-26 20:19 lvlin241 阅读(11591) 评论(0) 推荐(0) 编辑
摘要:background-color:transparent; 阅读全文
posted @ 2018-09-06 14:41 lvlin241 阅读(3009) 评论(0) 推荐(0) 编辑
摘要:参考:http://www.runoob.com/jsref/dom-obj-textarea.html 阅读全文
posted @ 2018-07-15 12:16 lvlin241 阅读(1320) 评论(0) 推荐(0) 编辑
摘要:★ .star { color: red; /* Make it red */ font-size: 200%; /* Make it twice as large */ } 阅读全文
posted @ 2018-07-15 12:13 lvlin241 阅读(153) 评论(0) 推荐(0) 编辑
摘要:参考:https://css-tricks.com/examples/ShapesOfCSS/ 阅读全文
posted @ 2018-07-15 12:13 lvlin241 阅读(139) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/mmykdbc/p/6200963.html 阅读全文
posted @ 2018-07-15 11:42 lvlin241 阅读(2199) 评论(0) 推荐(0) 编辑
摘要:参考:https://zhidao.baidu.com/question/2119920409146769787.html 阅读全文
posted @ 2018-07-15 11:35 lvlin241 阅读(717) 评论(0) 推荐(0) 编辑
摘要:1. input清空内容 $("#选择器id").val(""); $("input[name='input框名称']"); // 选择所有的name属性等于'input框名称'的input元素 $("input[name!='input框名称']"); // 选择所有的name属性不等于'input框名称'的input元素 $("input[name^='in... 阅读全文
posted @ 2018-04-09 14:38 lvlin241 阅读(169) 评论(0) 推荐(0) 编辑
摘要:none:元素不被显示。 block:元素将显示为块级元素,此元素前后会带有换行符。 inline:行内元素(即一个挨着一个,都在同一行按从左至右的顺序显示,不单独占一行)。 参考: http://www.w3school.com.cn/cssref/pr_class_display.asp htt 阅读全文
posted @ 2018-03-09 11:59 lvlin241 阅读(6655) 评论(0) 推荐(1) 编辑
摘要:height:容器高度固定(值是百分比时除外); min-height:容器高度小于该值时取该值,大于该值时按实际的值。应用:页面中页脚置底。 阅读全文
posted @ 2018-03-09 10:03 lvlin241 阅读(213) 评论(0) 推荐(0) 编辑
摘要:CSS 后代选择器 参考:http://www.w3school.com.cn/css/css_selector_descendant.asp div span {color:red} div 下面的所有span标签内容都是红色。 div > span {color:red} div下的一级标签sp 阅读全文
posted @ 2018-03-08 10:17 lvlin241 阅读(135) 评论(0) 推荐(0) 编辑
摘要:<!--参考: http://www.w3school.com.cn/cssref/pr_border-radius.asp--><style> .btn{ outline:none; /**按钮区域的边框,非按钮边框**/ cursor:pointer; border: 5px solid #de 阅读全文
posted @ 2018-02-06 10:11 lvlin241 阅读(598) 评论(0) 推荐(0) 编辑
摘要:1.css 1.js toLeft.png(图片来自"千图网") toRight.png(图片来自"千图网") jquery-3.0.0.js 官网下载地址如下: http://jquery.com/ 效果展示: 小结:用到的样式知识点 1. float 水平方向设置DIV块位置的属性。只有righ 阅读全文
posted @ 2016-11-20 16:18 lvlin241 阅读(902) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示