font-size

Getting the right font-size on every mobile device

∥☆過路亽.° 提交于 2019-12-09 14:12:25
问题 In my mobile app I use kind of big fonts for example: <b style="font-size:100px; font-family:Segoe UI">text</b> When I test it on my phone it looks great but on a smaller phone it's still the same size and it is too big. What css settings should I use to get the same size on every phone? 回答1: You should be using Media Queries for different device widths. @media only screen and (max-width: 768px) { b { font-size: 20px; } } @media only screen and (max-width: 320px) { b { font-size: 10px; } }

android ProgressDialog fontSize change

无人久伴 提交于 2019-12-09 13:23:18
问题 Is it possible to change the font size and make text bold which is displayed in a ProgressDialog .I have created a ProgressDialog like this: private ProgressDialog dialog; this.dialog = ProgressDialog.show(Activity.this, "Heading","Message...", true); I want to make Heading bold and increase the font size..pls help 回答1: If you import android.text.Html; then you will be able to use the Html.fromHtml() method to do it, like so: private ProgressDialog dialog; this.dialog = ProgressDialog.show

博客皮肤自定义设置

≯℡__Kan透↙ 提交于 2019-12-09 09:25:37
不得不说博客园自带的皮肤并不能满足所有人的审美。。。 好在博客园支持皮肤修改和自定义, 你如果学过html和css的话完全可以把界面玩出花来。。 没学过css的萌新也不用慌,按照下面的步骤做,可以拥有跟我一样风格的界面哦 第一步   去设置里点修改皮肤,找到simple memory这个皮肤模板,设为默认。   把禁用css模板的勾去掉(如果有的话)。 第二步   复制下面的css代码黏贴到页面定制css里,然后保存。 body { color: #000; background: url(https://img2018.cnblogs.com/blog/1440658/201809/1440658-20180904200409197-941112516.jpg) fixed; background-size: cover; background-repeat: repeat; font-family: "微软雅黑","Helvetica Neue",Helvetica,Verdana,Arial,sans-serif; font-size: 12px; min-height: 101%; } #blogTitle h1 { font-size: 50px; font-family: Consolas; font-weight: bold; font-style: italic;

博客园的自定义皮肤

和自甴很熟 提交于 2019-12-09 09:25:28
在折腾的好一阵之后,慢慢的对于园子的样式定制有了一些心得。最终借助李宝亨大大的牛气自定义皮肤终于翻身做主人了。 感觉好帅的说,下面简单写一下,具体定义皮肤的方式吧。 一、选择博客园模板 要选择一个在默认的模板中,对于样式定义较少的模板,这样才对于我们自定义的样式冲击比较小。毕竟园子现在还没有完全开放样式,模板的定义。除非大牛,将设计的模板上传。 目前被用于自定义样式使用最多的就是“LessIsMore”这个模板了,应该是这个模板中原式的CSS样式非常少吧。 二、设置博文正文的样式 样式定义的一个最重要的部分,就是对于文章内部的样式定义,好的样式定义能够让文章的内容和形式让人看起来更加清爽易懂哦。 在后台的“常用设置”选项卡中,找到自定义正文的样式的地方。 加入自定义的CSS代码,并且勾选“禁用默认CSS” 具体代码如下: /*公用*/ body { font-size:15px; padding:0; margin:0; font-family:"微软雅黑","宋体",Arial; background:#205424 url('http://mat1.gtimg.com/www/mb/theme/qqfs/one_lhj/wrapBg.jpg') no-repeat top center fixed; min-width:1200px; } #home { opacity: 0

emacs zoom in/out globally

て烟熏妆下的殇ゞ 提交于 2019-12-09 04:35:44
问题 I know that I can zoom in/out using C-x C-+, but this applies only to the current file. Once I open another one, the text goes back to the default value and it's really tiresome to do it over and over. How can I keep the zoom level global for the current emacs session? I know it's possible to set this in the init file if you know the exact font size, which I don't. Plus, I don't want to keep it that permanent - I usually need this when I'm without an external screen for a couple of hours or

Weather with you主题说明

我只是一个虾纸丫 提交于 2019-12-08 21:44:39
使用前请确保拥有js权限!!! 源代码: css: /*广告去死*/ #ad_t2 { display: none !important; } #i-amphtml-fill-content { display: none !important; } #i-amphtml-replaced-content { display: none !important; } #i-amphtml-replaced-content { display: none !important; } #img_ad { display: none !important; } /************************************************** 第一部分:所有的模板都使用的公共样式。公告样式是为了更好的向前和向后兼容。 如果不符合你皮肤的要求,你可以在后面通过更高的优先级覆盖着这些样式,但是 你不能删除这些样式。 **************************************************/ #EntryTag { margin-top: 20px; font-size: 9pt; color: gray; } .topicListFooter { text-align: right; margin-right: 10px; margin-top:

-webkit-text-size-adjust is no longer supported,how to set font-size to less than 12px

喜欢而已 提交于 2019-12-08 18:16:24
问题 When I update my chrome to 28.0.1500.11 dev-m , I found that: -webkit-text-size-adjust:none; is no longer supported,and I found the changlist here http://trac.webkit.org/changeset/145168 It`s not work in chrome when I set the CSS like this: font-size:10px;//number less than 12 In chrome (version:28.0.1500.11 dev-m) the font-size it`s also 12px I tried this: font-size:10px; -webkit-transform:scale(0.83); display:inline-block; I know it`s maybe not the right way to fix that issue thank you for

Maximum font size a page can render

那年仲夏 提交于 2019-12-08 18:03:14
问题 What is the maximum font size that can be rendered in a web page? Does it depend on the machine, or the application (browser)? 回答1: Yes. Every device has some set of fonts and font sizes it supports. For a desktop computer both sets are very large, but for a phone or other small device, the sets may be fairly limited. For a device with a text-only screen, there might only be one font at one size. 回答2: It differs from browser to browser.For example Mac/IE4+ doesn't render fonts specified

HTML CSS整理笔记(二)

六月ゝ 毕业季﹏ 提交于 2019-12-08 17:34:24
今天跟小常来给大家继续说一下HTML CSS整理笔记吧! 一起来继续学习复习下吧,一起加油吧! 小常说一下: 今天要做的事不要等到明天,该自己做的事不要让别人做 今天继续从CSS3美化网页开始说! ——5 CSS3美化网页—— 32.CSS3设置文本样式: (1) 标签:用来设置行内元素(或几个文字)的样式。 (2)字体样式: font-size:常用单位px font-family:若同时设中英文字体,英文字体要设置在中文字体前面 font-style:normal标准、italic斜体、oblique倾斜 font-variant:small-caps; 字体设置为新型的大写字母,所有小写字母都转换为大写。 font-weight:normal标准、bold粗、bolder更粗、lighter细、100-900数字越大越粗 font:一次设置字体所有属性,顺序为"字体风格-粗细-大小-类型" 如 font:italic bold 36px “宋体”; (3)用font简写方式至少要指定 font-size和 font-family 属性,其他的属性(如font-weight、font-style、font-variant、line-height)如未指定将使用默认值。缩写时 font-size 与 line-height中间要加"/"斜扛如 “12px/1.5em” 32

Font size of HTML form submit button cannot be changed

对着背影说爱祢 提交于 2019-12-08 17:15:54
问题 How can I increase the submit button font size? In chrome in particular, it's too small and the text looks squished. Working fiddle body, input { font-size: 30px; } I know there is -webkit-appearance: none; but that resets a lot of other styling. I'd like to keep the default styling, just with a different font size. 回答1: Webkit will respect your custom form element styles if you set a border or box-shadow property (yes, weird). As others have said, start with at least -webkit-appearance: none