跳至内容
菜单
此问题已终结
1 回复
2921 查看
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
3718
1
7月 24
1945
1
7月 24
1960
1
12月 22
2711
0
5月 22
2292