calledvdsのブログ -3ページ目

calledvdsのブログ

ブログの説明を入力します。

[Bole Online Note]: ① May 6, Google Developer Center launched a Web development best practices manual. Bole online resource channel after excerpts of the 2014 Nike KD 7 653997-001 Mens Basketball Shoes Orange Blue White Factory Outlet resources, has invited friends to Air Jordan Outlet participate focused 541100-300 Black Green White Style Nike Lebron X 10 Outlet on Web development manual translation. ② Since the translator has been working almost all friends, all in his spare time to participate, each translation schedule will be different (Please understand), so manual Chinese version will not be released in accordance with the order of the English version of the chapter. ③ manual Chinese version is not yet complete, please do not reprint, thank you. REVIEW: CSS's `background` property is a powerful tool to add to the complexity of the image elements, so add more pictures, or repeat pictures easier. When combined with media queries, background attributes 2014 Nike KD 7 653997-001 Mens Basketball Shoes Orange Blue White Factory Outlet become more powerful, Nike Blazers able to do in accordance with the screen resolution, viewable area size conditionally load background images. This section as image loading or art direction using media queries using image-set to provide a high-resolution picture using media queries provide high-resolution pictures or art direction. SUMMARY consider displaying characteristics of Lebron Slide 2 Elite the device, using the best pictures, including consideration of the screen size, device resolution and page layout. Change the background-image property in CSS, min-resolution and -webkit-min-device-pixel-ratio property is high DPI devices use the media queries. Use srcset property, providing high-resolution images for the original size of the image on the basis of 1x. Consider cost performance in the use of alternative technologies JS image, or use of high compression of high resolution picture on low-resolution devices. Art Direction for the picture to load Mens Nike Free 3.0 V2 Shoes Grey Orange or use the media queries media queries not only affect the page layout, you can also Nike Air Max load pictures conditionally based on the width of the viewable area, provided art direction. In the above example, the small screen will 2015 Nike Free 5.0 display small.png downloaded and applied to the div, and on the big screen will be background-image: url (body.png) applied to the body, while background-image: url ( large.png) applied to the div. .example {height: 400px; background-image: url (small.png); background-repeat: no-repeat; background-size: contain; background-position-x: center;}media (min-width: 500px) {body {background-image: url (body.png);} .example {background-image: url (large.png);}} view complete example of using image-set CSS to provide high-resolution pictures of image-set ( ) function to enhance the performance properties of background, so as to provide a different picture easier for different device characteristics. This allows the Nike Air Jordan 5 Women browser to select the best image from the device characteristics, such as displaying an image 2x 2x size on the screen, or the size of the pictures show 1x network bandwidth is limited. background-image: image-set (url (icon1x.jpg) 1x, url (icon2x.jpg) 2x); loading the correct picture, the browser will also adjust it to the appropriate size. In other words, the browser is assumed that the size of the image is 2x 1x twice the size of the Nike Air Max 2011 Men picture, so it will be scaled down to 2 times 2x the size of the picture, so the picture size on the page looks the same. For image-set () function is still supported by new, and only with -webkit vendor prefixes in Chrome and Safari browser support. Also consider when image-set () case does not work when set up an alternate image, for example: .sample {width: 128px; height: 128px; background-image: url (icon1x.png); background-image: - webkit-image-set (url (icon1x.png) 1x, url (icon2x.png) 2x); background-image: image-set (url (icon1x.png) 1x, url (icon2x.png) 2x);} View Complete example above style will load the appropriate resources to support image-set of the browser, and when that does not support the size of the resource use 1x. Most in need of attention to Nike Air Max 2011 Blue Grey White Air Max 2011 the problem is browser support for image-set () is not enough, most browsers will get 1x size of the resource. Use media queries to provide high-resolution pictures or art direction. Media queries rules are created on the device aspect ratio, it may be 1x or 2x the size of the screen to specify a different picture. media (min-resolution: 2dppx), Nike Air Jordan 6 Women (- webkit-min-device-pixel-ratio: 2) {/ * High dpi styles \u0026 amp; resources here * /} Chrome, Firefox and Opera browsers support standard (min -resolution: 2dppx) property, while Safari and the Android browser vendor prefixes are required to write and remove dppx units. Air Max 2011 Dark Black Blue Remember, these styles will be loaded in time to meet the media queries, and you must specify the basic style. Specify the basic style of practice to ensure that even if the browser does not support a particular resolution media queries, but also render something. .sample {width: 128px; height: 128px; background-image: url (icon1x.png);}media (min-resolution: 2dppx), / * Standard syntax * / (-webkit-min-device-pixel-ratio : 2) / * Safari \u0026 amp; Android Browser * / {.sample {background-size: contain; background-image: url (icon2x.png);}} You can also view the full sample size using min-width according to the viewable area Syntax display alternative pictures. The benefit of this technique is that, if the media query does not match the day, the image will not download. For example, bg.png only browser on the 500px width or greater width will be downloaded and applied to the body:media (min-width: 500px) {body {background-image: url (bg.png) ʱ??Google Web Development Best Practices Manual (2.1.2): CSS in the image