Each weekend to play one day tired, we'll do two interview questions. (it is sai

Preface

My CSS has been a short board, the reason is a few years ago on CSS do not pay attention to, now pay attention to the project experience is inadequate, so I spent a lot of time on this, read a book, do something, hope to improve the level of CSS in several projects！

Finished, I recently thought about their own CSS is short board, then the JS is suit? They find themselves in front of levels do not seem very high, then began to take old road to self up, so this time we want to do something to do the project, or on the Internet to make several interview questions to dry, the personal development is very good.

Before I have a period of time a bit confused, and can not find the direction and method of study, but in an interview in the process from the new obtained the power of attention, so we do not underestimate the impact of interview questions, interview question is a very good way to help designers improve! I don't CSS is short board, good it on two CSS interview questions.

Get down to business

The use of HTML+CSS to achieve such as layout, border-widht 5px, a grid size is 50*50, hover frame into the red (compatible with IE6+, considering the structure of semantic).

The use of a label and a pure CSS <a href= "title=" # "subscribe" > &lt /a> Subscribe; realization of figure, words always keep left 10px, down from 5px, change the font size (12px-50px), margins remain unchanged, do not use content: "subscribe", compatibility modern browsers

As the saying goes, there are pictures and the truth, two questions are out, we come to have a look.

A topic

To see the beginning of a topic, the first impression is small is very simple, but really simple is not to say, a simple estimate will not really out of the bar, I estimate a hole.

PS: I call it the ugly table, actually table is not ugly, I'm ugly, take this question you, finally actually using table realize it is no problem, we are talking about a thing should not separate the heart, for example, a few years ago, we used the percentage of layout, someone will say you are wrong, now??? Great design may re occupation of the market, table may also gigantic loser Gundam.

Preliminary do it just like this, we found that there is a gap between the tables, so we need to first remove the gap first:

cellpadding="0" cellspacing="0"

This is my first time to approach, but this may not be what I want solutions, and finally found this Dongdong:

border-collapse:collapse;

Well, this is what I want,

The frame border-collapse attribute set the table will be combined into a single frame, or as in the standard HTML as a separate display
separate
The default value. The frame will be separated. Don't ignore the border-spacing and empty-cells properties.
collapse
If possible, the frame will be combined into a single frame. The border-spacing and empty-cells properties will be ignored.
inherit
The rules should be inherited from the parent element of the border-collapse attribute.

So I feel to be rather baffling is finished.... Also don't know right. . .

Conclusion

Before we project manager said, nothing out of an interview, will be growing, I am here to become nothing to do two interview questions are good, ha ha, hoped that the two question can give you the fun.