Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6448 Lượt xem

I am using Odoo v10.I have created a custom class and added css property for that class and put that in <style> tag , but that css property is not applied if the module is not installed, After successful installation of module css style work. What to do if I want to use external CSS style before module install.

<html>

<head>

</head>

<body>

     <style> // not work if module is not install
            .text_custom{
                    color:#875A7B;
                    font-size:18px;
            }
     </style>

    <section class="oe_container oe_dark">

    <div class="oe_row">

        <h2 class="oe_slogan" style="color:#875A7B;">Title</h2> // inline css works well

        <h3 class="text_custom">Subtitle</h3>

</div>

</section> 

</body>

</html>

Anyone help me, how to add external css file/css style in index.html ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Maintree Trivedi,

css custom class it is not work properly please try with inline css just as mention below.

Ex:
<span style="color:#875A7B;font-size:18px;">Text</span>

I hope it works
Regards,



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Maitree,

Add this class before your .oe_styling_v8  css custom class.

<style> // not work if module is not install
           .oe_styling_v8 .text_custom{

                    color:#875A7B;
                    font-size:18px;
            }
     </style>

i have checked this version 9 and it worked well.

Regards,

Silvestar

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for your help.

But, It does not work for me.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 24
151
1
thg 7 23
5533
1
thg 9 23
1477
1
thg 7 19
3637
1
thg 5 18
7007