Home >Web Front-end >HTML Tutorial >CSS usage issues_html/css_WEB-ITnose

CSS usage issues_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:43820browse

I wrote a CSS file and used DIV= to connect the file. The text will have a corresponding background image, but I hope that some text will not have the background image, and I still want to use this style. What should I do? Thank you


Reply to the discussion (solution)

Please be more detailed and send me the code to see

In the class of div=, Add a class after it, such as bg, and add background:none to the style; for example, it turns out to be div class="menu", and the way to add a style is div class="menu bg". Be careful to put the name of the style that does not require a background at the end. . . .

But in that case the text will wrap automatically. What should I do?

Statement:
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