font-size

CSS标签选择器&类选择器

南楼画角 提交于 2019-12-05 11:31:34
基本选择器包括标签选择器、类选择器和ID选择器三类,其他选择器都是在这三类选择器的基础上组合形成 ##标签选择器 示例: <style type="text/css"> p{ font-size:12px; color:red; } </style> 类选择器 标签选择器虽然方便,但是也存在缺陷,因为每个标签选择器所定义的样式不仅仅影响某一个特定对象,而且会影响到页面中所有同名的标签。 类选择器可以为网页对象定义不同的样式类,实现不同元素拥有相同的样式、相同的元素拥有不同的样式。 类选择器以一个"."为前缀开头,让后跟随一个自定义的类名 如图: 示例1: <!doctype html> <html> <head> <style type="text/css"> p{ font-size: 12px; font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif"; color: aqua; } </style> <meta charset="utf-8"> <title>示例</title> </head> <body> <p>问君能有几多愁,恰似一江春水向东流</p> <p>剪不断,理还乱,是离愁,别是一番滋味在心头</p> <p>独自莫凭栏,无限江山

移动端常用布局

随声附和 提交于 2019-12-05 09:37:40
一、流 式布 局——flex布局 很长一段时间没有写静态页面布局,很多东西都开始模糊了,趁着最近做了一个小项目,把一些静态页面布局的知识简单梳理一下,加深自己的印象 1 .流式 布局的特征 (1)宽度自适应,高度固定,但是不是百分百还原设计图 (2)图标和字体的大小都是固定的,并不是所有的东西都是自适应的 (3)对于大的banner图(主要指轮播图),宽度自适应 2.流式布局的类型 (1)左侧固定,右侧自适应 (2)右侧固定,左侧自适应 (3)两侧固定,中间自适应 (4)等分布局  3-flex布局(弹性布局、伸缩布局) 给一个盒子设置了属性:display:flex; 则该盒子就变成了一个弹性盒子,而弹性盒子有自己的布局规则 (1)弹性盒子的主轴排列方式  justify-content——取值:flex-start 、flex-end、center、space-between、space-around 常用取值:space-between 均分对齐排列,两边贴边;space-around 均分对齐排列,不贴边  (2)flex布局的换行问题   flex布局和浮动不同,当多个盒子设置成左或右浮动时,如果一行排放不下时,会自动掉下去。但是flex布局多行排放需要手动设置flex-wrap属性 取值: nowrap默认值,不换行,此时不管有多少的子盒子,都排在一行,盒子越多

How to change font size in VS Code sidebar?

妖精的绣舞 提交于 2019-12-05 08:47:58
问题 Querying for fontsize in User Settings window yields only settings for: editor panes, suggest widget, markdown preview, integrated terminal as you can see below: Doing the same for sidebar gives even poorer results: Having fonts of different sizes in editor panes and sidebar looks... let's settle with: not too nice . Have I just found the greatest omission of this awesome tool? 回答1: This has been a feature request for some time. The short answer is right now there's no VSCode setting that

Input-number 数字输入框组件

坚强是说给别人听的谎言 提交于 2019-12-05 06:58:30
需求 加、减按钮 初始值 最大、最小值 数值改变时,触发一个自定义事件来通知父组件 目录文件 index.html 入口页 input-number.js 数字输入框组件 index.js 根实例 实现关键 Vue组件是单向数据流,无法从组件内部直接修改prop的值,解决办法就是给组件生命一个data,默认引用prop值,然后在组件内部维护这个data Vue.component('input-number', { data: function () { return { currentValue: this.value // value来自props里的属性 } }}); 上述解决了初始化引用父组件value的问题,但如果父组件更新了value,input-number组件中的currentValue也需要一起更新 为了实现同步更新的功能,我们需要使用 watch 监听功能(watch选项可以用来监听某个prop或data的改变,并在它们发送改变时,触发watch配置的函数) 在这里我们要监听两个数据,value和currentView;监听value是为了得知父组件修改了value,监听currentValue是为了当currentValue改变时,更新value input中绑定currentValue值,当用户输入结束时使用change事件来更新currentValue

Altering the font size for the Emacs minibuffer separately from default emacs?

 ̄綄美尐妖づ 提交于 2019-12-05 04:48:16
I've been attempting to alter the font / face for the emacs minibuffer separately from emacs default fonts, but without much luck. Specifically, I'm interested in making the minibuffer font size larger for use with the emacs MULE as, with my current font setting or if I'm using emacs on a "netbook" screen, sometimes the character selection options in the MULE are a bit small. Options easily accessed within emacs are the minibuffer-prompt & minibuffer-prompt-properties, but these are only for command prompts and not the regular minibuffer text. There seem to be a number of minibuffer variables

弹性、静态、响应式、自适应布局之间的区别

谁说我不能喝 提交于 2019-12-05 02:18:35
一、静态布局(Static Layout) 即传统Web设计,网页上的所有元素的尺寸一律使用px作为单位。 1、布局特点:不管浏览器尺寸具体是多少,网页布局始终按照最初写代码时的布局来显示。常规的pc的网站都是静态(定宽度)布局的,也就是设置了min-width,这样的话,如果小于这个宽度就会出现滚动条,如果大于这个宽度则内容居中外加背景,这种设计常见与pc端。 2、设计方法:   PC:居中布局,所有样式使用绝对宽度/高度(px),设计一个Layout,在屏幕宽高有调整时,使用横向和竖向的滚动条来查阅被遮掩部分;   移动设备:另外建立移动网站,单独设计一个布局,使用不同的域名如wap.或m.。   在移动端开发中采用静态布局的两种方式:(来自:流布局与响应式网页设计有什么区别?)  (1)在viewport meta标签上设置width=320,页面的各个元素也采用px作为单位。通过用JS动态修改标签的initial-scale使得页面等比缩放,从而刚好占满整个屏幕。(见前端开发-web app 变革之rem)  (2)设在viewport meta标签上设置content"width=640,user-scalable=no,页面的各个元素也采用px作为单位。由于640px超出了手机宽度,浏览器会自动缩小页面至刚好全屏。(具体见content"width=640,user

windows 安全

自闭症网瘾萝莉.ら 提交于 2019-12-05 02:07:19
Windows基础篇 */ /*--> */ Windows基础篇 1. 系统目录,服务,端口,,注册表 windows program files 用户 perflogs perflogs(win7日志信息 系统自动生成 删除降低系统速度) 服务 服务决定计算机的一些功能是否被启用 不同服务对应的功能不同 通过计算机提供的服务可以有效实现资源共享 web服务 dns 服务 邮件服务 telent服务 ssh服务 ftp服务 smb服务 端口 port(netstat -ano) 公认端口Well Known Ports 注册端口 Reistered Ports 动态/私有端口 Dynsmic snd/or Private Ports 知名端口Well_Known Ports 1-1024 动态端口 Dynamic Ports 一般不固定分配给某个服务 TCP端口 UDP端口 HTTP:80/8080/3128/8081/9080 FTP:21 Telnet:23 TFTP:69/UDP SSH SCP:22/TCP SMTP:25/TCP POP3 POST Office:110/TCP TOMCAT:8080 WIN2003:3389 ORACLE :1521 MSSQL*SERVER数据库server:1433/tcp 1433/udp QQ 11080/udp 端口的作用·

Label size in directlabels geom_dl()

白昼怎懂夜的黑 提交于 2019-12-05 02:06:45
I have really enjoyed the package directlabels for dynamic positioning the lables of a plot. Although still not perfect, it helps reasonably to prevent overlaps between labels of a scatter plots with many points for example - specially for the draft version of the charts, not the final one. However I can not find anyway to change the label size while using geom_dl() function. Is there anyway? I have tried to pass size and cex as a normal or aes() argument to the function. Put cex inside a list. Other formatting features should also be placed in the list. See some of the examples in

商城导航条(css版)

﹥>﹥吖頭↗ 提交于 2019-12-05 01:50:00
n久之前代码存档。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>商城导航条(css版)</title> <style> .topmenu{ display: block; width: 220px; border: 2px solid #e4393c; margin: 0; padding: 0; } .toptitle{ height: 40px; line-height: 40px; text-align: left; font-size: 11pt; font-weight: bold; color: white; background:#e4393c; padding-left: 20px;; } .topmenu li{ height: 30px; line-height: 30px; font-size: 11pt; list-style-type: none; text-align: left; padding-left: 8px; z-index: 3; background-image: url("1.png"); background-repeat: no-repeat; background-position: right; } .topmenu li a{

iOS - How to use `NSMutableString` in swift

旧街凉风 提交于 2019-12-05 01:46:26
问题 I have seen this Objective-C code but I'm struggling to do the same in swift: NSMutableAttributedString *res = [self.richTextEditor.attributedText mutableCopy]; [res beginEditing]; __block BOOL found = NO; [res enumerateAttribute:NSFontAttributeName inRange:NSMakeRange(0, res.length) options:0 usingBlock:^(id value, NSRange range, BOOL *stop) { if (value) { UIFont *oldFont = (UIFont *)value; UIFont *newFont = [oldFont fontWithSize:oldFont.pointSize * 2]; [res removeAttribute