CSS:a, label { display: block; border-bottom: 1px solid #ccc; padding: 1em 2em; width: 100%; co...
分类:
Web程序 时间:
2014-08-07 12:33:29
阅读次数:
268
qccs定义圆角border-radius:10px;如果想给特定位置定义圆角,如:左上角:border-left-top-radius:10px;右下角色:border-right-bottom-rasius:10px;半透明效果只需要在css中使用rgba(100,100,100,40)这种形式...
分类:
其他好文 时间:
2014-08-06 22:41:52
阅读次数:
247
问题: 一个页面分上下二部分,上部分高度是固定不变的,要求下部分高度自动占满屏幕,如何实现?第一感觉是准备用 JS 实现。今天发现一个用 CSS 实现的方法position: fixed;bottom: 10px;overflow: auto;left: 0px;top: 44px;positi.....
分类:
其他好文 时间:
2014-08-05 18:18:39
阅读次数:
162
题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).F....
分类:
编程语言 时间:
2014-08-05 05:18:08
阅读次数:
340
Welcome back. Last time, we dove into bottom end of the pixel pipeline. This time, we’ll switch back to the middle of the pipeline to look at what i.....
分类:
其他好文 时间:
2014-08-05 00:25:48
阅读次数:
321
CSS 定位属性CSS 定位属性允许你对元素进行定位。属性描述position把元素放置到一个静态的、相对的、绝对的、或固定的位置中。top定义了一个定位元素的上外边距边界与其包含块上边界之间的偏移。right定义了定位元素右外边距边界与其包含块右边界之间的偏移。bottom定义了定位元素下外边距边...
分类:
Web程序 时间:
2014-08-04 21:27:37
阅读次数:
470
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:
Web程序 时间:
2014-08-04 14:44:18
阅读次数:
412
因为项目需要新功能,要在一个图片的上下加上固定高度的白边如下图。项目中一直使用ABCpdf.NET处理图片,但我一直没有做这方面的功能,所以找来API参考做。 这个简单需求做的过程中出现了一些曲折,主要是ABCpdf.NET的坐标体系和想象中的不一样。 它坐标系不同于Windows所用的左上为原点的...
分类:
Web程序 时间:
2014-08-04 10:52:27
阅读次数:
376
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-03 22:59:56
阅读次数:
259
栈(stack) 是限定仅在表尾进行插入或删除操作的线性表。因此,对栈来说,表尾端有其特殊含义,称为栈项(top),相应地,表头端称为栈底(bottom)。不含元素的空表称为空栈。...
分类:
其他好文 时间:
2014-08-03 18:09:45
阅读次数:
313