先上效果图吧 点击'roll'按钮,会出现旋转的动画 代码如下 <!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript" src="JS/jquery-1.12.2.min.js"></script> < ...
分类:
Web程序 时间:
2020-05-23 13:20:00
阅读次数:
53
.wx-swiper-dots{position:relative;left: unset!important;right: 0;} .wx-swiper-dots.wx-swiper-dots-horizontal{ margin-bottom: -5rpx; } ...
分类:
微信 时间:
2020-05-23 09:50:46
阅读次数:
648
垂直居中: 块级元素 1.使用position设置定位方式后进行元素的偏移 2.利用CSS3的弹性布局(flex) 内联元素 使用CSS3 flex布局 水平居中: 块级元素 1.直接设置margin 2.使用position设置定位方式后进行元素的偏移(类似于垂直居中相应的方法),先设置left: ...
分类:
其他好文 时间:
2020-05-23 00:36:08
阅读次数:
49
注意给父级加上 (1)横向滚动 left:0; right:0; 然后想要横向滚动的话 overflow-x:scroll; overflow-y:hidden; (2)竖直方向滚动 top:0; bottom:0; position:fixed; overflow-y:scroll; overfl ...
分类:
其他好文 时间:
2020-05-22 19:03:10
阅读次数:
50
import random import numpy as np import matplotlib.pyplot as plt position = 0 walk = [position] steps = 100 x = [] y = [] for i in range(steps): step ...
分类:
其他好文 时间:
2020-05-22 19:02:54
阅读次数:
80
1.三种定位方式: 相对定位relative:相对于自身的位置进行偏移,postion需要搭配left/right/top/bottom postion:relative; left:10px; bottom:10px; 绝对定位position:相对于有position属性的父元素定位,如果父元素 ...
分类:
编程语言 时间:
2020-05-22 18:56:36
阅读次数:
67
1.三种定位方式: 相对定位relative:相对于自身的位置进行偏移,postion需要搭配left/right/top/bottom postion:relative; left:10px; bottom:10px; 绝对定位position:相对于有position属性的父元素定位,如果父元素 ...
分类:
其他好文 时间:
2020-05-22 18:54:50
阅读次数:
45
最近遇到了一个解析json字符串的问题。由于嵌套的节点较多,刚开始通过遍历的方式去获取,但是遍历首先就是逻辑麻烦,然后想要你需要的东西可能会比较困难。后面发现json的节点是不变的,那么可以通过JsonConvert将json字符串转成指定的model,而这个model所含有的字段要和字符串中的节点 ...
分类:
Web程序 时间:
2020-05-22 17:14:47
阅读次数:
54
1条线时*求线的中心点&长度/角度:line_position (Row1, Column1, Row2, Column2, RowCenter, ColCenter, Length, Phi2) //求线的中心点,长度,角度(角度准确性存疑)求角度angle_lx (Row1, Column1, ...
分类:
其他好文 时间:
2020-05-22 15:37:23
阅读次数:
65
Position定位 中`position position static relative absolute fixed sticky inherit`。 static 属性是 元素的默认值,即没有定位,遵循正常的文档流对象,对于 、`bottom left right z index`属性的设置 ...
分类:
其他好文 时间:
2020-05-22 12:49:01
阅读次数:
57