rely on, content! = Contentarea?
Answer: Yes.
When talking about contentarea, it is necessary to clearly understand what is a standard box model and what is an IE box model. In fact, their differences are different from the contentarea resolution. To put it bluntly, the width and height resolution are different. The boxes are the same, including margin, border, padding, and content. Let's take a look at the two models, starting with the standard box model:
The width and height of the standard b
Respond.js documentation for more information.Respond.js and @import
CSS files introduced through @import are not supported by Respond.js. For example, Drupal is typically configured to introduce CSS files through @import, and Respond.js will not work for them. Please refer to the Respond.js documentation for more information.Internet Explorer 8 with box-sizing
IE8 cannot fully support box-sizing:border-box and is used in conjunction with Min-width
) Adjust the size of the object using the guideline
Use the two guideline to resize two or more objects of the same size (height or width) or different sizes. In both cases, the process of sizing with a two-guideline is the same.
① creates a guideline.
② aligns the side of the object with the alignment.
③ creates a second guideline on the other side of the object.
Note: This guideline should not be exposed to the object.
④ Click the object to activate
.
5. When block-level elements wrap inline elements, there will always be several pixel differences
Solution: Set the inline element attribute: display: block;
..Css hack (hack is risky and should be used with caution)
1. html hack
Use in css:
.ie6 body{ background-color:red;}
2. selector hack
* html .test{color:#090;} /* For IE6 */* + html .test{color:#ff0;} /* For IE7 */
3. Attribute hack
Color: # fff \ 0;/*: Select IE8 + and Opera */color: #090 \ 9;/* For IE browser */* color: # f00;
content, and the rest is counted as an extra. So you specify an element:
.example { width: 200px; padding: 10px; border: 5px solid #000; margin: 20px;}
Then his final width should be:
宽度 = width(200px) + padding(10px * 2) + border(5px * 2) + margin(20px * 2) = 270px;
In IE (below IE9), the final width is:
宽度 = width(200px) + margin(20px * 2) = 240px;
I personally think that IE is more in line with human thinking, after all, padding called the inner marg
prefers you to solve this case. Other companies do not seem to have this feeling.Jue. In addition, I personally think we should participate in some practical topics (especially for SS ).And I will talk to you more.
Appendix: do not add any notes to the interview cases of various consulting companies.In chronological order, the number of rounds is no longer specified. Generally, there are two rounds)
BCG:1. Market sizing of pulp in China Market2. A th
Make a rainbow effect with CSS and a rainbow with css
Today I saw an article about the collapse of margin and provided several examples.
I have never encountered this problem before. I just want to study it.
Css style 1, Collapsed using margin:
.box1, .box2, .box3 { width: 200px; }.box1{ margin-bottom: -80px; height:100px; background: blue; }.box2 { margin-bottom:-40px; height:60px; background: #ffff00;}.box3{ height:20px; background: #ff0000;}
Effect:
Css style 2It also uses the m
, border, and internal margin)Inner box size calculation (element size)Element height = content height (height includes the width, margin, and inner margin of the element content)Element width = content width (width contains the content width, margin, and padding of the element)In my personal understanding, the box model in IE directly Sets box-sizing: border-box;
1. CSS3 box model attributesSyntax and parameters: box-
Compile the countdown timer and jquerycountdown Based on the jquery plugin
If you don't talk much about it, go directly to the Code:The following describes how the plug-in is called:
1. You need to load the css file corresponding to the countdown plug-in first, just a few lines of code. You don't need to introduce it, just like writing it yourself.
Css code content:
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-
memory (CPU memory ratio) is more important, if the match is too high, waste, if the match is too small, the CPU capacity can not be fully played. Therefore, a suitable CPU core memory ratio is required.Memory per core ratio for SAP HANA appliancesSAP defines cpu/memory ratios in T-shirt size, such as:S+ uses the memory of S, and the hardware of M. m+.SAP Business Suite has low CPU requirements, high memory requirements, and different T-shirt SizeSizing approachThe
Sometimes we need to write a flexible box in CSS3, so how does this code work? This needs to use our Box-shadow attribute, he can let the box in the display when the shadow effect, the following will give you a detailed explanation
Writing:
Box-shadow:length length length color;
The first parameter indicates the horizontal distance the shadow left the box
The second parameter indicates the vertical distance the shadow left the box
The third parameter represents the blur radius of the shadow
The
calculation (element size)Element height = content height (height includes the width, margin, and inner margin of the element content)Element width = content width (width contains the content width, margin, and padding of the element)In my personal understanding, the box model in IE directly Sets box-sizing: border-box;
1. CSS3 box model attributesSyntax and parameters: box-sizing: content-box | border-box
Use jquery to implement multiple-choice drop-down box and jquery combo box
[Preface] Many plug-ins are used on the website, such as the bootstrap-select plug-in dependent on bootstrap. Although these frameworks can implement many functions, but in actual projects, only one of these functions may be used. If all functions are introduced, the loading of the entire js will be too heavy. For example, the bootstrap-select plug-in mentioned above can reach more than 300 k without compression. Therefor
comply with W3C standards think that the width of an element is only equal to the width of its content, and the rest should be calculated separately. Therefore, you define an element:
.example { width: 200px; padding: 10px; border: 5px solid #000; margin: 20px;}
The final width should be:
Width = width (200px) + padding (10px * 2) + border (5px * 2) + margin (20px * 2) = 270px;
In IE (lower than IE9), the final width is:
Width = width (200px) + margin (20px * 2) = 240px;
I personally think
[Css skills improvement] css advanced skills and css skills improvementReset with CSS
CSS reset can maintain consistent style on different browsers. You can use the CSS reset library Normalize and so on, or use a simpler reset method:
* { box-sizing: border-box; margin: 0; padding: 0;}
Now the margin and padding values of the element are 0,box-sizingYou can manage the layout of your CSS box model.
Note: If you follow the subsequent inheritancebox-s
Front-end development is increasingly focused on efficiency and performance, and using a preprocessor with less and SCSS resources provides a great convenience for our front-end CSS authoring work. But there are many simple ways to write small, fast CSS code, improve development efficiency and solve many common problems.1. Use CSS ResetCSS reset libraries like normalize.css are very popular, providing a refreshing choice for your site style to ensure better consistency between browsers. In fact,
Use warehouse size (Warehouse-scale) calculations as needed
Processor cores with custom extensions and shared memory the external HPC architecture of the internet is rapidly being replaced by an on-demand cluster, these clusters take advantage of off-the-shelf general-purpose vector collaboration processors, converged Ethernet (each link-gbit/s or higher speed), and multicore headless (headless) servers. These new on-demand HPC resources are similar to the so-called warehouse
(corresponding to the y-axis radius);The default color for border is the font color of the current label.Take the transparent value to indicate the transparent color.#盒子模型补充Sub box Border box (Border-box)背景色默认渲染区域,可通过设置background-clip: 调节。Filling box (Padding-box)严格意义上overflow溢出是指溢出填充盒。Content Box (Content-box)默认情况下width和height属性是指内容盒的宽度和高度。Calculation of box sizebox-sizing:设置元素的尺寸范围。content-box(默认值)border-box表示元素的width和height设置区域是边框盒。可以解决页面横向滚动条的问题。
1.width()/height()
Zepto.js: Determined by the box model ( box-sizing )
JQuery: Ignore box model, always return width/height of content area (not included padding , border )Official description of JQuery:
Note that would always .width() return the content width, regardless of the value of the CSS property box-sizing . As of JQuery 1.8, this could require retrieving the CSS width plus
];Nsarray *items = @[rectitem,flexibleitem,circleitem];[Marktoolbar Setitems:items Animated:yes];Can only be achieved by adding an item
Solution Source:
Http://www.cocoachina.com/bbs/read.php?tid-1725608.html
Question 2. TableView Refresh, the data is loaded, but the position has offset
Reason: Table views: Enable Self-sizing by default in iOS 11
This should be the biggest change in UITableView. We know that after IOS8 introduced the self-
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.