In the above code, if you can put span and div on the same line by adjusting the css of Span?
Note that the css properties of any element other than span cannot be adjusted. But you can turn span into other elements, and this element must support the attribute of background being an image.
Reply to discussion (solution)
No way. . The div has already filled the top part, and there is definitely no solution without changing the styles of other elements.
span can only be positioned absolutely, left and top can be adjusted by yourself~~
span
div div>
>
play:inline-block ;">div
;
Dude, why does one use div and the other span? Do you understand inline elements and block-level elements? First figure out which are inline elements and which are block-level elements, and then use them! Otherwise, your layout will be a big pit...
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