Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8126 มุมมอง

Hi everyone,

I am working with a customization of qweb PDF reports.I added CSS styles to the report using <style></style>tags.The background color is working fine. but when giving a value to color: it doesn't work

eg:

    .page{
        background-color:#edffed;
    }

works , But

    .page{
        color:#0000ff !important;
    }

Doesn't work , Could anybody help me?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Muhammed Nishad,

i think you have added perfectly css, but it's not apply because text inside .page class has some tags and that tags uses some other css or it's affecting on that tags so you have to apply css on particular tags or class/id


 
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello try below code,

it will work in my side.

 .page{
        color:#0000ff !important;
    }
อวตาร
ละทิ้ง
ผู้เขียน

It's not working bro. I have already tried.But forgot to add in the question

คำตอบที่ดีที่สุด

you can add --- style="color:white;" in corresponding tags,it is working fine in

,, tags,

eg:

.........

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 24
2670
1
ก.พ. 23
11964
1
ก.ย. 18
8003
0
ธ.ค. 20
6644
0
ม.ค. 21
804