Home > Web Front-end > HTML Tutorial > A little problem with inline elements_html/css_WEB-ITnose

A little problem with inline elements_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:39:55
Original
1185 people have browsed it

Inline elements cannot set the height and width. So how are the height and width of each element and text in the inline element calculated?
Can block elements be included in inline elements?


Reply to discussion (solution)

The width and height of inline elements are determined by the self-supporting content
According to unwritten front-end specifications Speaking of which, it is best not to include block attribute elements in inline elements, which may cause the browser to parse the structure abnormally

The width and height of inline elements are determined by the self-supporting content
According to unwritten rules According to the front-end specifications, it is best not to include block attribute elements in inline elements, which may cause the browser to parse the structure abnormally


So for two inline elements side by side, the height is based on the taller one?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template