font

前端笔记整理 html和css部分 (2)

五迷三道 提交于 2019-11-27 09:22:32
一段文字两端对齐:text-align:justify 将块元素转为单元格的模式:display:table-cell 行高:文字在行高垂直居中的位置上 text-indent 首行缩进,让文本消失的方法:设成负值 letter-spacing 字间距 word-spacing 英文单词之间的距离 text-transform 文本转大小写 font-variant 可以转小的大写字母 复合写法 font:12px/行高 “微软雅黑” 来源: https://www.cnblogs.com/wangbingblog/p/11355768.html

Unity3d 移动平台中文显示问题

跟風遠走 提交于 2019-11-27 08:46:00
Unity3d在Android平台上不能显示中文,可以通过自定义字体实现.据说unity3d4.x后会支持动态文字显示 1.先找到一个字体,以微软雅黑为例子,在unity3d 项目中新建一个Font文件夹,将字体放到文件夹中. 2.选中字体,Character选择为Custom set 3.在Font文件夹中新建一个Txt文本文件,保存为UTF-8格式,文本中的内容是想显示的中文汉字. 4.下载这个UnicodeTextImporter工具放到Font文件夹,菜单栏中会显示AssertDatabase菜单. 5.选中字体,点击菜单上的AssertDatabase,会弹出一个窗口,选择Font文件夹中的Txt文件. 6.现在就可以在移动平台上显示中文了. 转载于:https://www.cnblogs.com/WilliamJiang/archive/2012/10/15/2724455.html 来源: https://blog.csdn.net/weixin_30323631/article/details/99616941

琐碎内容

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 07:57:08
尺寸问题: iPhone应用程序图标大小:57*57; iPhone全屏UIView大小:320*460 添加UITabBar后大小:320*411 UITabelViewCell默认大小: 320*44 绘制控件方法 //--alloc -(UITextField *)GetDefaultTextField:(CGRect)frame{ UITextField *textField=[[UITextField alloc] initWithFrame:frame]; textField.borderStyle=UITextBorderStyleRoundedRect; textField.font=[UIFont fontWithName:@"Arial" size:12.0]; textField.textAlignment=UITextAlignmentCenter; textField.contentVerticalAlignment=UIControlContentVerticalAlignmentCenter; textField.keyboardType=UIKeyboardTypeNumbersAndPunctuation; textField.returnKeyType=UIReturnKeyDone; textField.delegate=self;

各种类型文件的Content Type

荒凉一梦 提交于 2019-11-27 07:55:39
CONTENT_TYPE = { 16 '.load': 'text/html', 17 '.123': 'application/vnd.lotus-1-2-3', 18 '.3ds': 'image/x-3ds', 19 '.3g2': 'video/3gpp', 20 '.3ga': 'video/3gpp', 21 '.3gp': 'video/3gpp', 22 '.3gpp': 'video/3gpp', 23 '.602': 'application/x-t602', 24 '.669': 'audio/x-mod', 25 '.7z': 'application/x-7z-compressed', 26 '.a': 'application/x-archive', 27 '.aac': 'audio/mp4', 28 '.abw': 'application/x-abiword', 29 '.abw.crashed': 'application/x-abiword', 30 '.abw.gz': 'application/x-abiword', 31 '.ac3': 'audio/ac3', 32 '.ace': 'application/x-ace', 33 '.adb': 'text/x-adasrc', 34 '.ads': 'text/x-adasrc',

CSS Modules入门教程

雨燕双飞 提交于 2019-11-27 07:10:22
为什么引入CSS Modules 或者可以这么说,CSS Modules为我们解决了什么痛点。针对以往我写网页样式的经验,具体来说可以归纳为以下几点: 全局样式冲突 过程是这样的:你现在有两个模块,分别为A、B,你可能会单独针对这两个模块编写自己的样式,例如a.css、b.css,看一下代码 // A.js import './a.css' const html = '<h1 class="text">module A</h1>' // B.js import './b.css' const html = '<h1 class="text">module B</h1>' 下面是样式: /* a.css */ .text { color: red; } /* b.css */ .text { color: blue; } 导入到入口APP中 // App.js import A from './A.js' import B from './B.js' element.innerTHML = 'xxx' 由于样式是统一加载到入口中,因此实际上的样式合在一起(这里暂定为mix.css)显示顺序为: /* mix.css */ /* a.css */ .text { color: red; } /* b.css */ .text { color: blue; }

仿爱购网(登录)html+css+JS

穿精又带淫゛_ 提交于 2019-11-27 05:32:33
主要在于添加正则表达式对用户的用户名及密码进行限制 注册页面相差不大,不过需要建一个数组保存注册的账号。 html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>爱购登录</title> <link rel="stylesheet" type="text/css" href="css/dl_style.css"/> </head> <body> <div class="wraper"> <div class="row_one"> <img src="img/logo.png" alt="" /> <div class="imgright2 imgright"></div> <div class="imgright3 imgright"></div> <div class="imgright1 imgright"></div> </div> <div class="row_two"> <!--<img src="login-bg.jpg" alt="" class="bgimg"/>--> <div class="input"> <form action=""> <div class="form1"> <div class="dlag">登录爱购</div> <span class="zc">还没有爱购账号?

解决zabbix web管理界面出现白色方框的问题

[亡魂溺海] 提交于 2019-11-27 05:11:30
本地windows上下载输入法字体文件。 下载在本地,后把大写改成小写。 将该文件拷贝至/var/www/html/include/fonts/目录下 然后修改 define.inc.php 文件。 将原来的改为stsong define('ZBX_GRAPH_FONT_NAME', 'stsong'); // font file name ####大约在第44行 define('ZBX_FONT_NAME', 'stsong'); ######大约在第92行 保存退出 重启zabbix 来源: https://blog.51cto.com/12144803/2429129

13 django分页器

我与影子孤独终老i 提交于 2019-11-27 05:03:14
django分页器 视图函数 1 from django.shortcuts import render,HttpResponse 2 from page_app01.models import Book 3 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger 4 import math 5 6 # Create your views here. 7 8 9 def pages(request): 10 # 初始化数据 11 ''' 12 booklist = [] 13 for i in range(1,101): 14 booklist.append(Book(title="python_%d"%i,price=i+i+i)) 15 Book.objects.bulk_create(booklist) # 批量插入数据 bulk_create(数据库对象实例化列表) 16 ''' 17 book_objs = Book.objects.all() 18 my_paginator = Paginator(book_objs, 3) # 按每页3条进行分页 19 print(my_paginator.count) # 总条数 100 20 print(my_paginator.num

base.AutoScaleMode = AutoScaleMode.Font; 方法“InitializeComponent”内的代码由设计器生成,不应手动修改。请移除任何更改,然后尝试重新打开设计...

醉酒当歌 提交于 2019-11-27 04:20:11
http://www.taohuiduo.com 反编译后的工程文件用VS2010打开后,在打开窗体时会出现一系列错误提示: 第一种情况: “设计器无法处理第 152 行的代码: base.AutoScaleMode = AutoScaleMode.Font; 方法“InitializeComponent”内的代码由设计器生成,不应手动修改。请移除任何更改,然后尝试重新打开设计器”。 解决方法就是:对所有System.Windows.Forms.命名空间里面的控件需要全命名空间的声明,例如里面上图的base.AutoScaleMode = AutoScaleMode.Font;就要改成base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 转载于:https://www.cnblogs.com/hesijian/p/3250296.html 来源: https://blog.csdn.net/weixin_30520015/article/details/99367111

FreeMarker | 取值篇

旧巷老猫 提交于 2019-11-27 04:03:25
第一部分:Spring Boot 集成 FreeMarker 1、 pom.xml 需要这些依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 2、yml 我喜欢 yml,所以删掉 application.properties ,新建 application.yml 3、配置 在 application.yml 中添加如下配置 # freemarker spring: freemarker: template-loader-path: classpath:/templates/ cache: false charset: UTF-8 check-template-location: true content-type: text/html expose-request-attributes: true expose-session