offset offset 可以得到任意样式表中的样式值 offset 系列获得的数值是没有单位的 offsetWidth 包含padding+border+width offsetWidth 等属性是只读属性,只能获取不能赋值 所以,我们想要获取元素大小位置,用offset更合适 style st ...
分类:
其他好文 时间:
2020-11-10 11:15:19
阅读次数:
4
<!DOCTYPE html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> p ...
分类:
Web程序 时间:
2020-11-10 11:13:27
阅读次数:
18
原生js实现TodoMVC 先用html和css写好页面的基本结构样式,代码如下, index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel= ...
分类:
Web程序 时间:
2020-11-08 17:56:16
阅读次数:
32
盒子模型 当对一个文档进行布局(lay out)的时候,浏览器的渲染引擎会根据标准之一的 CSS 基础框盒模型(CSS basic box model),将所有元素表示为一个个矩形的盒子(box)。CSS 决定这些盒子的大小、位置以及属性(例如颜色、背景、边框尺寸…)。 ——MDN 1. 盒子模型的 ...
分类:
Web程序 时间:
2020-11-08 17:51:22
阅读次数:
33
标题样式1 <p> <span style=" text-align: center; padding-bottom: 6px; padding-left: 20px; padding-right: 500px; color: #800080; padding-top: 6px; box-shado ...
分类:
Web程序 时间:
2020-11-08 17:16:18
阅读次数:
37
使用css定制表格: .table{ display:table; /*相当于table*/ section{ &:nth-of-type(1){ display:table-header-group; /*相当于thead*/ background:#555; color:#fff; } &:nt ...
分类:
Web程序 时间:
2020-11-08 17:12:24
阅读次数:
27
首先在标签容器中声明class属性为layui-form来标识一个表单元素块,结合html标签和css样式组合成不同的表单元素,并通过layui的form模块内部的工具完成交互, 第一次使用需注意,layui的form表单需要render渲染以后才能使用form表单元素和功能。 其中layui-fo ...
分类:
其他好文 时间:
2020-11-08 16:47:01
阅读次数:
20
android text加入圆角边框的方法是 声明一个自定义的一个xml样式,类似 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" and ...
分类:
移动开发 时间:
2020-11-07 17:42:08
阅读次数:
29
css 语法由三部分构成:选择器 、 属性 、 值 selector { property : value } css中注释 : /* */ 使用css样式: 1.内联方式(行内样式) 就是在HTML的标签中使用style属性来设置css样式 格式: <html 标签 style=" 属性:值 ;属 ...
分类:
Web程序 时间:
2020-11-07 17:26:58
阅读次数:
33
被选中的tab变大 TabBar( tabs: _tab.map((f) { return Text( f, style: TextStyle(color: Colors.white), // 设置tab文字的样式,优先级最高 ); }).toList(), controller: _control ...
分类:
其他好文 时间:
2020-11-07 17:26:26
阅读次数:
41