I preset the background color of the table, such as < bgcolor = # fff >. When wkhtmltopdf is not installed, the preview will display normally, but when wkhtmltopdf is installed, there is no bgcolor. What is this? Of course, I also tried several versions of wkhtmltopdf
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
Hello drt,
try following code for apply background color
background-color:#E0E0E0;
Thank you, but I didn't use CSS, I just defined it in the HTML tag
Then write following code in your table tag
<table style="background-color:#E0E0E0;">
// YOUR CODE HERE.....
</table>
Thank you. It works for the whole table, but I need to mark each line with different colors. Then there is another problem. My font is too small
try this code and put it before your table tag
<style>
tr:nth-child(odd) {
background-color: #FF0000;
}
</style>
非常感谢,起作用了,但是我的html和css技术太差了,想要实现其他的效果我还要继续努力,再次感谢!
Thank you very much, it works, but my HTML and CSS technology is too poor, I have to continue to work hard to achieve other effects, thank you again!
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
0
mar 25
|
3948 | ||
|
|
1
mar 25
|
3822 | ||
|
|
2
lip 24
|
5870 | ||
|
|
4
maj 24
|
14402 | ||
|
|
1
maj 24
|
5288 |