码迷,mamicode.com
首页 >  
搜索关键字:left align    ( 14598个结果
div中图片和文字同一行实现垂直居中
vertical-align作用对象为内联元素display设置table-cell后,magin和padding就会失效 #bj { height:100px; color: white; font-size: 30px; margin: 10px 0; display: table-cell; ...
分类:其他好文   时间:2020-03-30 00:07:21    阅读次数:195
Python-判断正负小数
#1、必须只有一个小数点 #2、小数点的左边必须是整数,小数点的右边必须是正整数 def is_float1(s): s = str(s) #.1 if s.count('.')==1: left,right = s.split('.') #['-','1'] if left.isdigit() a ...
分类:编程语言   时间:2020-03-29 12:50:22    阅读次数:140
css实现九宫格,覆盖单格显示边框
效果图 css *{ margin:0px; padding:0px; } ul.box{ list-style:none; width:165px; height:165px; padding:30px; } .box li{ float:left; } .box a{ display:block ...
分类:Web程序   时间:2020-03-29 01:38:09    阅读次数:114
codeforces 1324 C. Frog Jumps(贪心/二分)
There is a frog staying to the left of the string s=s1s2…sns=s1s2…sn consisting of nn characters (to be more precise, the frog initially stays at the ...
分类:其他好文   时间:2020-03-29 01:06:51    阅读次数:86
调整数组顺序使奇数位于偶数前面
给定一个数组,将奇数全部调整到偶数前面。 //调整数组顺序使奇数位于偶数前面 11223344 class SoftCount{ static int[] arr={1,2,3,4,5,6,7,8,9,10}; static int[] soft(int[] arr){ int left=0; in ...
分类:编程语言   时间:2020-03-28 20:16:04    阅读次数:74
js之window
1.获得窗口的位置 var left = window.screenLeft || window.screenX; var top = window.screenTop || window.screenY; 2.获得窗口的大小 var width = document.documentElement ...
分类:Windows程序   时间:2020-03-28 18:21:11    阅读次数:85
树的遍历
2.3二叉树的遍历 树的表示 1 //树的表示 2 typedef struct TreeNode *BinTree; 3 struct TreeNode 4 { 5 int Data;//存值 6 BinTree Left;//左儿子结点 7 BinTree Right;//右儿子结点 8 }; ...
分类:其他好文   时间:2020-03-28 13:17:09    阅读次数:72
Selenium getCssValue/getCSSProperty
const font = elem.getCSSProperty('font-family') console.log(font) border-bottom-color color display text-align height background font-family font-size ...
分类:Web程序   时间:2020-03-27 16:54:34    阅读次数:76
进阶实验8-2.3 二叉搜索树的最近公共祖先 (30分)
解题思路: 1、定义一个结构体,来存储二叉排序树 typedef struct { int data; int left; int right; int parent; int h; } T; 2、再定义一个结构体,将输入数据存入 typedef struct { int data; int pos ...
分类:其他好文   时间:2020-03-27 12:49:50    阅读次数:125
「数学」夹角公式
内容 设直线 $l_1$ 、 $l_2$ 的斜率存在,分别为 $k_1$ 、 $k_2$ , $l_1$ 与 $l_2$ 的夹角为 $\theta$ ,则 $\tan \theta=\left|\frac{k_{1} k_{2}}{1+k_{1} k_{2}}\right|$。 ...
分类:其他好文   时间:2020-03-27 10:51:20    阅读次数:137
14598条   上一页 1 ... 90 91 92 93 94 ... 1460 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!