Today to introduce to you is the CSS Min-width and max-width How to set, a lot of friends are puzzled about the minimum width min-width and the maximum width of the max-width style has any effect? What is the maximum width of the minimum width for?
Today, I encountered a problem about how to use js to solve the problem that ie6 does not support max-width and max-height. At first, I used the jQuery method to implement it, but I still couldn't get the values in css, as shown inCopy codeThe Code
Today encountered a problem with JS to solve IE6 support max-width,max-height, just started with the jquery method to achieve, but has been not to get the value of CSS, such as
Copy Code code as follows:
if ($.browser.msie &&
Recently get a forum, on the first page to have a ranking, showing the top 10 users of the list of comments, the list has a sketch is the user's latest upload works, if the original diagram, the picture is too large, the home page loaded too slow,
2016-03-10 01:40 by voidness, 7463 reading, 8 Reviews, favorites, compilation Understanding Background-size in CSS3 (proportional scaling for responsive images)Read Catalogue
Basic properties of Background-size
Set a fixed width
/**********************************************************
* Function Resize:
*
* = Creates a resized image based on the max width
* Specified as well as generates a thumbnail from
* A rectangle cut from the middle of the image.
*
* @dir =
Understanding Background-size in CSS3 (proportional scaling for responsive images)Read Catalogue
Basic properties of Background-size
Set a fixed width and height for the picture
Fixed width 400px and height 200px-using
The code is as follows:
$ (document). Ready (function () {
var img_h= $img. Height ();
var img_w= $img. Width ();
The above code in IE and Firefox is not a problem, but there may be problems in Google, the reason is not the
The code is as follows:$ (document). Ready (function () { var img_h= $img. Height (); var img_w= $img. Width (); }) The above code in IE and Firefox is not a problem, but there may be problems in Google, the reason for the size of the goods is
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.