Alibabacloud.com offers a wide variety of articles about responsive design font size, easily find your responsive design font size information here online.
myopia), elderly users will not do so, as a "humane care" front-end, we could fully consider these circumstances. Since it was introduced in the CSS preprocessing tool, this would hardly add any cost.Again, the response page is not just responding to different types of devices, but also responding to different user needs. The settings for each browser are as follows:
ie: Press the ALT key to open the menu bar → view → font
, the text in the page typesetting carries an artistic intuition.
The common text size in the Web page is px (Pixels), EM, and now the REM unit is added in CSS Values and Units Module level 3.
Related articles: CSS3 tutorial: Relative unit REM Detailed
One, what is REM?
The specification clearly reads:
Equal to the "computed value of '" on the font-size
way, regardless of how the screen width changes, the H1 font size remains at 2.5% of the viewport width.
Considering the development of a future responsive design, if you want, the height of the browser can also be adjusted based on the percentage value. However, using a percentage-based value is not always the best
px Pixels (Pixel). Relative length units. Pixel px is relative to the screen resolution (PAD/PHONE/PC) of different device displays. (quoted from CSS2.0 manual)1em refers to the size of a font, which inherits the font size of the parent element, and therefore is not a fixed value. The default
This seems to be a new font size unit viewport-percentage lengths.The width and height of a unit is different from the size of the current view window by 1%, represented by (VW, VH). You can set the maximum minimum value by Vmin and Vmax.1VW = width of the current view window (viewport) 1% 1VH = height of the current view window (viewport) 1% 1vmin = 1VW or 1VH,
Organized in the "Responsive web design HTML5 and CSS3 Practice Guide" book① based on width percentage
For the above picture, we can fix the div width it belongs to with a percentage, then let the picture adapt to the width and height of the div
. img-wap{
Float:left;
width:40%;
}
. img{
max-width:100%;
Height:auto;
}
② Create a cookie for the device, and return a picture of the appropriate
How to automatically prevent mobile browsers from automatically adjusting the page size during responsive design
As we all know, when designing a responsive page, we often encounter some browsers that will narrow down the entire page to prevent page interceptions,
We need to zoom in to see the content. This is the fu
Web page Production WEBJX article introduction: the application of fonts in web design.
Font is an important part of the site, although these sites are used in the English alphabet, but we can find that the quality of the use of fonts for the site's overall style and design style plays a big role. The following sites are almost always in the
problems (text size, line height, column width). So responsive design has already included responsive typography in many ways. For the first time on our own website, the article on response fonts is focused on the "stage font" we use. I want to talk about stage in the next
945.6.2 Test Media Query Results 965.7 Breakpoint 965.8 Design Range 975.9 Responsive Design 985.9.1 Progressive Enhancement 985.9.2 design with a grid 995.9.3 using grid columns 1005.9.4 priority for small screen design 1015.10 Using Media Queries 1025.11 Two-Column Layout
Currently, most sites in China use CSS to set the font size to 12 px. Although the pixel is also relative to the size unit, it is only relative to the screen resolution. When the screen resolution is certain, if you feel that the word is too small and difficult to read, you can do nothing in a non-standard browser. Therefore, if you change the unit to em, you can
"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SampleText-26sp"
android:textSize="26sp"/>
In terms of title, first line text, or scroll text box, we often do not want user preferences to affect the display effect. In this case, you should try the DP unit because it fully adjusts the display according to the pixel density of the device, and does not involve any user preference settings.
Fixed pixel size
ArticleDirectory
First, understand the font units:
Reference size plus percentage Model
What are the benefits of using the reference size + percentage?
First, understand the font units:
Relative unit: pixel resolution relative to the device screen; em relative to the parent element; Ex relative to the lette
Design
Now most of the sites in the country with CSS to set the font size of 12px, pixel is also relative to the size of the unit, but only relative to the screen resolution, when the screen resolution is certain, if you feel that the word is too small, reading difficulties, in the non-standard browser can do nothing,
Page design and development should be based on user behavior and device environment (System platform, screen size, screen orientation, etc.) to respond and adjust accordingly. The concrete practice way is composed of many aspects, including elastic grid and layout, picture, CSS Media query use and so on. Whether the user is using a laptop or an ipad, our pages should be able to automatically switch resoluti
Reprint Please specify source:http://blog.csdn.net/llew2011/article/details/51668407Students who know about iOS should know that there is a Uisliderbar control in iOS and that the control is used in the set text size in the iphone. One of the recent product requirements is to change some of the font size in the app, although the technical difficulty is not small
the Web page, RWD can make your Web page in different devices to show different design style. From this point of view, responsve is neither a fluid layout nor a grid layout, he is a unique approach to web design.
Responsive design is undoubtedly a hot topic in web design.
BlackBerry, the Kindle ... Create one--page resolution must also be compatible with any device. Who knows how many new devices we need to design for the next 5 years to develop different versions of the page? When does this madness count?
In the field of web design and development, soon we will not be able to keep up with the pace of innovation in equipment and resolution. For most sites, it is impractica
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.