-
You can also apply the Chinese pinyin alphabet, the backstage staff don't just look at your css! Also combine the page to see where the call is made, and which place needs to be modified. For example, to modify the navigation, you need to see which CSS is called by the navigation layer, confirm which CSS and then make changes.
-
Naming conventions are mainly required to be in the same dimension, so that all members of the same team can understand. Of course, there are also public naming methods, such as head, body, and so on.
For example, let's make a div+css, and as far as the board is concerned, first divide the big blocks: header, leaderboard, left column, right column, content area, bottom, etc. Then, adopt a uniform naming.
The naming of CSS is divided into: typesetting blocks, functional blocks, listic blocks, etc.
Namely: typography: main head, main body, main left, main right, main footer;
Functional blocks: fl(float-left), fr, will be commonly used to build classes; Easy to call;
There is also a list: list x (left and right), list y (top and bottom);
The naming of the div is also according to the above way, first typesetting, and then functional;
For example, the head.
If the logo inside the head, then the main head logo, etc.;
Multi-purpose classes, because a div can accept multiple classes at the same time, the naming rules need to be simple, clear, and readable.
-
According to the norm, the first must be named in English, preferably meaningful.
For example, if you want to define a header style, then name it head, if you want to define an option style, name it menu, define the bottom style and name foot, and so on.
In short, it is standard to use meaningful English names to name them.
The nested naming of complex points is also a reason, such as the head nesting option, head menu, that's about it, this is my understanding, I hope it will help you.
-
In addition to the naming should be standardized, but also use some appropriate tags, don't be div everything, such as the text to be emphasized, use strong, column titles use h2, h3, logo can be placed in h1, or content page titles can also be placed in h1, etc., so that you can also name some names less. In addition, generally a ** template can be simply divided into css, images, js folders. These are some of my experiences in writing template CSS.
-
There are a lot of answers to this on the Internet.
-
If only a few or dozens of lines**! Just according to the English words. But if there are too many, it will be difficult to write, and sometimes it will be replaced directly by the first letter of Hanyu Pinyin or Pinyin.
But it's too much, I can't even see what I write, let alone let the programmer call these styles. The difference between the id and class of the div+css stylesheet: to sum it up, class can define multiple values and can be applied to multiple tags, but the id can only be one.
-
1.The class attribute of the HTML tag allows multiple classes to be used at the same time, and spaces are used to separate different classes.
2.CSS cannot use a name with a space as the class name, such as .btn and .BTN Buy is legitimatebtn btn buy is invalid.
3.The class name must be preceded by the CSS definition. , for your question why I define one.
btn btn buy a style to quote no, the correct way to write isA means a style that is a tag under an element that has a btn and a class name with a btn buy style. Your btn buy is not written in front of it.
Oh, and also, if you write it. btn .btn buy a is a mark that represents an element with btn buy under the element with btn.
-
class="btn btn_buy"
These are two classes side by side, one is btn and the other is btn buy, and both classes can control the style of that tag.
If the same style is controlled, the latter overrides the previous one, for example: the front color: 000 and the back color: fff, and the final result is color: fff
-
Names cannot have spaces.
This is written class="btn btn buy" means that the style of both classes is applied to this element.
For example, if your btn defines a blue background and btn buy defines a red border, then class="btn btn buy" has both a blue background and a red border.
-
Upstairs is right! Such asbtn and .BTN Buy is legitimatebtn btn buy is invalid.
-
This one has spaces, which refers to two class styles, not the name of one.
-
Whether it's plain html+css or div+css, it's just a template, and it has nothing to do with your programming background.
This must be done using dynamic technologies as well as databases.
Language: ASP PHP JSP CGI ASPX Database: Access SQL
-
div is equivalent to table, it is more streamlined and beautiful to use than table, and it is very cumbersome to use table, css is style, and it is styled for div or table. It doesn't have much to do with doing background programs.
-
Design the ** to be displayed in the backend, return with , and load with span on the client side.
-
Now those things that are applied to the background are all made for him separately
-
It's still a problem with the ID selector, which is generally used less or not, but it doesn't matter if you don't use it. Writing CSS is also not very advocacy of using id selectors, and its scope is too small and not as reusable as class. Native JS is more focused on ID, but if JS is not very customizable, it is generally JQUERY, then the requirements for ID are basically gone.
If you are not very skilled in working with programmers, you should not use the id for the time being, otherwise he will complain about this and that. You don't care about the rest, as long as it meets the W3C standards, whether the programmer can do it or not depends on his ability. Moreover, the structure of the page is not exactly what the programmer asks, but also needs to be negotiated and optimized with the SEO.
You can understand it if you do more.
-
Your friend said that the attention should only be **standardization.,The so-called normalization is to name the id of the div to play a role in the fate of the knowing.,Make the name simple and clear.。 In addition, you should pay attention to the writing format of **, don't be too messy so that you can't understand when you add variables in the background. That's what it means.
-
Generally, the name should be written in English so that it is easy to understand.
-
Let's start with the first question for you:
The DIV+CSS naming convention is generally in English format, if the word is long in English, use the first three letters.
If you say that there are multiple ads, you can add other identification names to the back of the ads, such as banner tg (** ads).
Of course, this can be written according to your own preferences, and this is only done to facilitate the maintenance and management of the second problem.
div setting float in div has no effect, it will not let the content in ul and li also float with it, to be exact, the style in ul and li will not inherit the style of the outside div because ul and li are independent, all you have to set the style in ul and li.
-
It is recommended to use semantic naming, such as the header and bottom of the page, and the id can be used for independent modules, such as.
Component properties can be set to class, such as buttons, to:btn;**List, set to:datatable。
-
id is the only definition, the length of the name, it doesn't matter, as long as you can understand what it means! Included: There is only one you in the world!
Class means that it can be used in multiple places, for example: there are many men in this world haha.
Usually the post-90s or girls in between, the standard for boys is that they must first have a sense of humor, be considerate of girls, believe in themselves, be sincere to themselves, girls are also a very good-looking group, you have to properly meet their vanity requirements! Then they will be obedient to you!
People who are addicted to smoking tend to smoke one pack a day, and some smoke two packs a day. >>>More
According to my experience, some girls get along well with their husbands after marriage, but they don't get along well with other people in their in-laws' family. >>>More
True love is not something that can be expressed in words, it comes from the heart, When you fall in love with someone, your whole heart will be attracted to the person you love, fascinated by them, and worried about them, I hope you can see them every minute, and when you can't see them, you will always think about them, When you see them, you will be excited, your heart will beat faster, and you will feel warm and safe when you are together. A person who truly loves will willingly take care of him and care for him, and give him everything he wants. When you see the person you love happy, you will be happy, and you will be troubled when you see him, but you will try your best to make the person you love happy, and if you really love someone, you will want to grow old with him, and you will look forward to using all your love to bring him the greatest happiness, and you will also get another kind of happiness in this process!I often think of him and I am happy, I mind him very much, I care about him very much, I seem to have lost something without him, I have happiness with him!
In fact, it is very simple to be happy, let go of your worries and remember good things. >>>More