gpt4 book ai didi

javascript - 覆盖 Jquery 移动 CSS

转载 作者:太空狗 更新时间:2023-10-29 13:32:53 24 4
gpt4 key购买 nike

是否可以使用单独的自定义 css 文件覆盖已经设置样式的 JQuery Mobile 元素(按钮、列表等)?

如果是这样,我将如何引用这些元素。

谢谢

最佳答案

是的,您可以覆盖已在 jQuery 移动版中定义的所有 css 样式,但请看一下如何以一种好的方式执行此操作。 Theming overview在 jQuery 文档中有与您的问题相关的信息。特别是:

Overriding themes

The themes are meant as a solid starting point, but are meant to be customized to add the custom design elements that make your site or app unique. Since everything is controlled by CSS, it's easy to use a web inspector tool to identify the style properties you want to modify. The set of of theme classes (global) and semantic structural classes (widget-specific) added to elements provide a rich set of possible selectors to target style overrides against. We recommend adding an external stylesheet to the head, placed after the structure and theme stylesheet references, that contain all your style overrides. This allows you to easily update to newer versions of the library because overrides are kept separate from the library code.

关于javascript - 覆盖 Jquery 移动 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7904899/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com