Home > Web Front-end > HTML Tutorial > How to remove CSS styles from the page and display them after they are stored in the database_html/css_WEB-ITnose

How to remove CSS styles from the page and display them after they are stored in the database_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:01
Original
1584 people have browsed it

css database

When my data is stored in the database, it is saved as follows. Each piece of data has a CSS style definition

Product name, price, storage time, product level Style
Product 1 100 **** 1 CSS definition
Product 2 120 **** 2 CSS definition
Product 3 130 **** 3 CSS definition

...


🎜> Now I need to query these products on the page, generate a table, and display the style of each row of product information through page interpretation CSS.
What should be done?
Please give me some guidance! !


Reply to the discussion (solution)


It’s really not flattering for you to do this

You’d better tell me the purpose, it looks good What is the appropriate way to do it?


This approach of yours is really disrespectful.
You should talk about the purpose so that we can see what is the appropriate way to do it.

My purpose is to query The table generated by the product can control the style of each query result.

Is there a better way?

If you don’t use ajax to dynamically generate the table, just process it in the background.

Isn’t it the same as displaying other fields in the database?


Solved, another section gave an example



$ {Product 1}


Mainly, in the generated table, the style of each record queried may be Not the same.
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