CSS2中常用的属性:text-indent:首行缩进;vertical-align:垂直对齐方式;white-space:空格处理方式;line-height:设置行高;CSS3新增文本属性:text-overflow:clip:溢出的部分裁切掉;ellipsis:显示省略标记(...) //该属...
分类:
Web程序 时间:
2015-02-03 14:51:56
阅读次数:
194
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-02-03 13:22:19
阅读次数:
269
效果图: <html>
<head>
<meta?charset="utf-8">
<meta?http-equiv="X-UA-Compatible"?content="IE=edge">
</head>
<body>
<div?id="main"?style="100%;?height:?100%;"></div>
</body>
<script?src="ec...
分类:
其他好文 时间:
2015-02-03 11:23:18
阅读次数:
297
android开发相对于ios有一个很大的优势,那就是可以通过xml来写布局,而且布局可以很灵活,能适应多种屏幕。但是时间久点你会发现xml中有太多的重复代码了,我真是恨死了在每次增加一个控件的时候都要不情愿的写上
1
2
android:layout_width="wrap_content"
android:layout_height=...
分类:
移动开发 时间:
2015-02-03 11:06:16
阅读次数:
174
本文根据在慕课网的学习笔记整理。什么是选择器?每一条css样式声明(定义)由两部分组成,形式如下:选择器{ 样式; }//样式包括类属性和值标签选择器标签选择器其实就是html代码中的标签。如、、、、。例如下面代码:p{font-size:12px;line-height:1.6em;}类选择器1、...
分类:
Web程序 时间:
2015-02-03 10:41:13
阅读次数:
180
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><GridViewandroid:id="@+i..
分类:
其他好文 时间:
2015-02-03 07:07:40
阅读次数:
152
Given an array where elements are sorted in ascending order, convert it toa height balanced BST.
HideTags
Tree Depth-first
Search
#pragma once
#include
#include
using namespace std;...
分类:
其他好文 时间:
2015-02-02 23:14:33
阅读次数:
181
@charset"utf-8";*{ margin:0; padding:0; list-style-type:none;}a,img{ border:0;}body{ font:12px/180%Arial,Helvetica,sans-serif,"新宋体";}/*flexslider*/.flexslider{ margin-bottom:10px; position:relative; width:100%; height:100%; overflow:hidden; zoom:1;}.flex..
分类:
Web程序 时间:
2015-02-02 19:57:20
阅读次数:
195
Android下的权重问题困扰了我很久,最近一直在寻找答案,终于找到了解决的方法了,下面 通过两个小例子就可以理解了。
案例一:
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="horizo...
分类:
其他好文 时间:
2015-02-02 18:13:28
阅读次数:
111
Description
Packets
A factory produces products packed in square packets of the same height h and of the sizes , , , , , .
These products are always deliver...
分类:
其他好文 时间:
2015-02-02 18:12:25
阅读次数:
133