跳至內容
選單
此問題已被標幟
1 回覆
2965 瀏覽次數
Can classes or IDs be added to the elements (blocks) of the web? To identify and add css properties to unique elements.


頭像
捨棄
最佳答案

Hi,

Yes, in Odoo, just like in any other web development framework, you can add classes or IDs to elements (blocks) to identify and apply CSS properties to them. Odoo follows standard web development practices, so you can manipulate HTML templates and CSS files to achieve this.


Example :


<template id="custom_template" name="Custom Template">

    <div class="custom-class" id="unique-id">

        <!-- Your content here -->

    </div>

</template>



Hope it helps

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 24
3750
1
7月 24
1980
1
7月 24
1995
1
12月 22
2751
0
5月 22
2322