; }
Please note that the header and footer words are repeated three times. This indicates that the header and footer span the width of the 3 columns. You can write it all in one line, but write each line on a separate line very well, very clean. You can see that I have used a new property here grid-gap . All it does is add a space between the two grid areas. Y
CSS Grid layout (GRID) can divide a Web page into rows and columns with simple attributes, use CSS to position and adjust each element in the grid directly, and do not need to be nested in multiple layers to implement a layout, in a nutshell, the
shown in red, and the woman's birth date background color is displayed as blue */{ header: ' Birthday ',dataindex: ' Birthday ',width:120,renderer:renderbirthday}, {header: ' Email ',dataindex: ' Email ',flex:1}]; this.callparent (arguments); });Custom style: X-grid-record-gray. X-grid-record-gray. X-grid-cell-inner {
We can specify grid columns, rows, and areas in one property using the the grid-template shorthand. { display: grid; height: 100vh; grid-gap: 10px; grid-template-areas:
I believe that everyone is more familiar with the flex layout, the recent study of the wave grid layout, although the compatibility is not too high, the application is not too common, but the function is very powerful. The future should be grid+flex for the mainstream, grid is a two-dimensional layout, very flexible, suitable for the overall structure, and Flex i
is still the row layout after the trigger. So the block element is presented as an inline object, and Display:inline plays this role (* is identified only by IE6, 7), and then triggers layout through zoom:1. Can realize the so-called inline-block. But things are far from over, this guy faces a number of funeral needs you to deal with, for example, will default to have the outside margin (IE6, 7 except). And before this problem, you may need to relax and look at the following phenomenon.
As me
This article is also published in my personal website www.yaoxiaowen.comThe distance from the previous article has been one months, compared to writing code, found that writing articles is really more need to adhere to the matter. To get to the point, it is necessary to keep a record of these one months, when writing IFE tasks.One, CSS to draw special graphics.In a Web page, when you need some special graphics. such as semicircular, triangular, etc.,
CSS
Code :
Copy code The Code is as follows:. X-grid-back-red {
Background: # ff0000;
}
JS Code:Copy codeThe Code is as follows :{Header: 'split into type ',Dataindex: 'dividetype ',Renderer: function (v, m ){M.css = 'x-grid-back-red ';Return V;},Width: 60}
Or you can write it like this.Copy codeThe Code is as follows :{Header: 'number ',Dataindex: 'fcid ',
Css code:Copy codeThe Code is as follows:. X-grid-back-red {Background: # FF0000;} Js Code:Copy codeThe Code is as follows:{Header: 'split into type ',DataIndex: 'dividetype ',Renderer: function (v, m ){M.css = 'x-grid-back-red ';Return v;},Width: 60} Or you can write it like this.Copy codeThe Code is as follows:{Header: 'number ',DataIndex: 'fcid ',
CSSCode:
Copy code The Code is as follows:. X-grid-back-red {
Background: # ff0000;
}
JS Code:Copy codeThe Code is as follows :{Header: 'split into type ',Dataindex: 'dividetype ',Renderer: function (v, m ){M.css = 'x-grid-back-red ';Return V;},Width: 60}
Or you can write it like this.Copy codeThe Code is as follows :{Header: 'number ',Dataindex: 'fcid ',CSS
At first I want to set a navigation bar, width is full of the entire screen, each sub-navigation width is the same, the width of the navigation bar, the following (for the sake of sharing, I gave each child navigation deliberately add a background color):Then I began to write the HTML code, very simple, as follows:1 DOCTYPE HTML>2 HTML>3 Head>4 MetaCharSet= "Utf-8">5 title>Inline-blocktitle>6 Head>7 Body>8 ulclass= "Main-nav">9 Li>
The next example shows how Flex uses the Swatchgridbackgroundcolor style to set the color of the colorpicker Swatch color grid background.
Here is the complete code
layout= "Vertical"verticalalign= "Top"Backgroundcolor= "White"Creationcomplete= "Init ();" > . mycustomswatchpanelstylename {* Border * *Swatchbordercolor:white;Swatchbordersize:1; * Highlight * *Sw
So far, grid projects have been placed in separate cells, but we should break this limitation so that grid projects can go beyond the cell interface to achieve more useful layouts. Let's see how this is achieved in this section.
Defining a grid area
Here's a grid we've been trying to implement: Nine
everything, such as grid systems, style resetting, basic panels, and form styles, others only focus on the grid, but it still seems bloated. In the end, adding complexity will only make the learning curve steep, increase development time, and endless debugging. So if you only need oneLightweight CSS Grid SystemTo buil
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.