Home >Web Front-end >HTML Tutorial >Yesterday I participated in an interview with a Beijing company. There was a very difficult CSS exam question. Please help me answer it. Thank you! _html/css_WEB-ITnose
Yesterday I went for an interview with a technology company in Haidian District, Beijing. They gave me a set of test papers. I secretly wrote down a question that I didn’t know how to do and asked friends on the forum to help me answer it. Thank you!
Question: Please read the following html code carefully and write css code to implement the following two functions?
1 2 divs with id equal to oneDiv and twoDiv The heights are all 1px pixels This is wrong. The height of these two divs is determined by the content, that is, the text content.
This is wrong. The height of these two divs is determined by the content, that is, the text content.
Sorry, I made a mistake, id equals oneDiv The two divs with twoDiv have no content.
The correct code is:
Don’t do it
-------- -------
However, your "No. "One span", "second span", and "third span" are not centered horizontally and vertically.