@font-face { font-family: "宋体"; }@font-face { font-family: "Cambria Math"; }@font-face { font-family: "@宋体"; }@font-face { font-family: "Cambria"; }p....
分类:
其他好文 时间:
2014-09-12 23:26:24
阅读次数:
228
h1 { font-size: 72px; background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#333)); -webkit-background-clip: text; -webkit-te...
分类:
其他好文 时间:
2014-09-12 13:24:03
阅读次数:
177
@font-face { font-family: 'SingleMalta'; src: url('./font/SingleMalta.ttf'); } @font-face { font-family: 'jiami'; src: url('./font/jiami.tt...
分类:
其他好文 时间:
2014-09-12 13:18:33
阅读次数:
192
清除图片下方出现几像素的空白间隙方法1:img{display:block;}方法2:img{vertical-align:top;}除了top值,还可以设置为text-top | middle | bottom | text-bottom,甚至特定的和值都可以方法3:#test{font-size...
分类:
Web程序 时间:
2014-09-12 08:51:13
阅读次数:
297
makeCertPic.java package pic; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import...
分类:
编程语言 时间:
2014-09-11 11:01:41
阅读次数:
300
因为工作需要,写了一个小插件,用于将数据生成表格,并可以在表格中检索内容并定位。css:table { border-collapse:collapse;border-spacing:0; }table th { font-weight:normal; }input,img { border:0;}...
分类:
Web程序 时间:
2014-09-11 11:00:41
阅读次数:
498
UILabel*testlable=[[UILabelalloc]initWithFrame:CGRectMake(10,20,200,20)];NSString*tstring=@"UILabel
ios7
与ios7之前实现自适应撑高的方法,文本的内容长度不一,我们需要根据内容的多少来自动换行处理。在IOS7下要求font,与breakmode与之
前设置的完全一致sizeWithFont:..
分类:
移动开发 时间:
2014-09-10 14:21:01
阅读次数:
177
一、元素内容的字体属性1、font-family 字体名称,例如:宋体,新罗马字体等注意:1、不能使用偏僻的字体,要使用安全字体,如:arial;verdana;times new roman 及宋体等; 2、可以同时制定多个字体,用逗号分隔,如果第一个字体不存在,浏览器可以使用后面的字体;...
分类:
Web程序 时间:
2014-09-10 01:36:09
阅读次数:
198
import traceback
import random
import pygame
from pygame.locals import *
pygame.display.init()
pygame.font.init()
sizes = {
"screen" : ( 300, 480 )
}
colors = {
"font" : ( 138, 69, 252 ),
...
分类:
其他好文 时间:
2014-09-09 18:19:59
阅读次数:
350
import traceback
import math
import pygame
from pygame.locals import *
pygame.display.init()
pygame.font.init()
sizes = {
"screen" : ( 300, 480 )
}
colors = {
"line" : ( 255, 255, 255 ),
...
分类:
其他好文 时间:
2014-09-09 16:11:49
阅读次数:
368