font-size

QML - How to change TextField font size

て烟熏妆下的殇ゞ 提交于 2019-12-24 03:21:15
问题 How can I set the font size of a TextField element in QML? wanna change size of the placeholderText and also for the text which the user enters. I tried with a lot of ways without luck! TextField { id: name_TextField; horizontalAlignment: Text.AlignHCenter; Layout.preferredWidth: parentCLayer.width * 0.90; Layout.preferredHeight: 50 style: TextFieldStyle { font.pixelSize: 20 // This doesn't seem to work either } placeholderText: qsTr("Your name here") } 回答1: You can use the style property to

Chrome renders em based font sizes differently on devices

泪湿孤枕 提交于 2019-12-24 01:55:32
问题 I'm having an issue comparing font sizes between pages on my layout. I have the font set on the body with font-size: 100%; and on my paragraph tags with font-size: 1em; . I have a two column page set with CSS columns and a single column layout. The font is rendering larger on the single column page. It's also rendering differently with font-size: .75em; in the footer and on a main section of my site. I've determined that it's Chrome only and appearing to cause the issue on the Nexus 7. The

Chrome renders em based font sizes differently on devices

左心房为你撑大大i 提交于 2019-12-24 01:55:10
问题 I'm having an issue comparing font sizes between pages on my layout. I have the font set on the body with font-size: 100%; and on my paragraph tags with font-size: 1em; . I have a two column page set with CSS columns and a single column layout. The font is rendering larger on the single column page. It's also rendering differently with font-size: .75em; in the footer and on a main section of my site. I've determined that it's Chrome only and appearing to cause the issue on the Nexus 7. The

Change font size of a jQuery Mobile button at runtime

北城以北 提交于 2019-12-24 00:52:14
问题 jQuery Mobile 1.1.1 changes how buttons are formed. Previously, I could set the font size of buttons like this: <div id="Button1" data-role='button' data-inline=true data-theme=c data-icon=false data-iconpos=none style="font-size:12px;">Button</div> The font size attribute is being ignored in 1.1.1. It draws with the default font size (16px?). I can change the font size by adding this line of code: $('#Button1').children().children().css('font-size','12px'); But now the vertical alignment of

Android TextView doesn't resize after changing text size

断了今生、忘了曾经 提交于 2019-12-23 17:17:33
问题 I have a ListView with some custom layout for the row (an image, then two lines of text using two TextView in a vertical LinearLayout , see code below) My problem is that when I dynamically change the text size (in the getView method of the Adapter ), the text size does change, but the size of the TextView that wraps it doesn't. Here is a picture of what it does when I set the size to something "higher" than the default (picture is with 18). Despite the large number of threads or questions

Change font-size for a single scope in Sublime Text 2 [duplicate]

旧巷老猫 提交于 2019-12-23 16:26:37
问题 This question already has an answer here : Per-token font size in Sublime Text 2 (1 answer) Closed 3 years ago . Is it possible in a .tmTheme file for Sublime Text 2 to change the font-size in a single scope? I couldn't find any documentation on what keys I had available. What I really want to do, is make the name of the section in \section{name} in LaTeX in a different size font, with something like: <dict> <key>scope</key> <string>entity.name.section.latex</string> <key>settings</key> <dict

sticky footer 布局

人盡茶涼 提交于 2019-12-23 15:48:28
在开发中常遇见这种问题,我们需要将底部固定在页面的最下方;无论正文内容的高度是多少; 如果直接用fixed定位:bottom为0;那么当正文过多时,底部将会与正文重叠; 代码如下: html: <div class="container"> <div class="content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet consectetur corporis dolores error eveniet fugit, illo minus nemo praesentium quo ratione, repellat rerum saepe sapiente tempora tenetur ut, voluptates voluptatum? </p> </div> <div class="bottom-fix">bottom</div> </div> css .container{ width:100%; height:100%; overflow:auto; position: relative; } .content{ font-size: 50px; } .bottom-fix{ position: fixed; bottom:0; width:100%; height:80px;

Subtle font size animation over short distances with long durations in jQuery

不羁的心 提交于 2019-12-23 15:22:02
问题 I want to animate some text in a slow and subtle way. jQuery animations work with integer values, so if you want to animate a size over say 10px in two seconds, you see a series of small steps at five FPS which looks jerky. Here's a jsFiddle that shows what I'm talking about. I found a similar question about animating positions, but the top / left /etc properties are integral, and so the accepted answer says it's not possible. However font-size can be animated as a real number, if jQuery will

jquery change font-size based on cookie?

放肆的年华 提交于 2019-12-23 14:49:09
问题 I'm trying to create a text resizer, which also sets a cookie depending on what the user has chosen as the font-size for the website. It creates the cookie fine, but I can't seem to get it to resize the body text once the page is loaded initially. Any help would be appreciated. The code is: var origFont = parseFloat($("body").css("font-size"), 10); var cookieFont = $.cookie("fontSize"); if (!cookieFont) { var curFont = origFont; $("#content").css("font-size", curFont); } else { var curFont =

why does my font-size look so much larger in the android webview object than when viewed in the android browser?

风流意气都作罢 提交于 2019-12-23 09:25:02
问题 I am trying to make one of those tiny android apps that do nothing but display a website in a webview object rather than the browse and so far it loads the target webpage but the text and image sizes are all much larger than when the page is viewed in the actual device browser. In the browser the page looks right but not in my app. Inspecting the page in my desktop chrome reveals the css is using font-size 6em if that helps you. When I include a viewport meta tag it does not do anything for