html – Semantic-UI UI类的用法

html – Semantic-UI UI类的用法,第1张

概述使用Semantic-ui的ui类有哪些规则?在文档中,ui类不一致地用于定义菜单 <div class="menu"><div class="ui menu"> 这包含在文档的 Glossary部分中: ui is a special class name used to distinguish parts of components from components. For example, 使用Semantic-ui的ui类有哪些规则?在文档中,ui类不一致地用于定义菜单

<div ><div >
解决方法 这包含在文档的 Glossary部分中:

ui is a special class name used to distinguish parts of components
from components.

For example,a 07001 will
receive the class ui List because it has a corresponding deFinition,
however a List item,will receive just the class item.

The ui class name helps encapsulate CSS rules by making sure all
‘parts of a component’ are defined in context to a ‘whole’ component.

It also helps make scanning unkNown code simpler. If you see ui you
kNow you are looking at a component.

菜单很好地证明了这一点(文档中的简化示例):

<div >  <div >    Applying    <i ></i>    <div >      <div >Applications</div>      <div >International Students</div>      <div >Scholarships</div>    </div>  </div></div>

外部菜单是一个实际的UI组件,因此具有ui和菜单.但是,内部菜单实际上是另一个组件的一部分,即下拉列表,因此没有ui类.

总结

以上是内存溢出为你收集整理的html – Semantic-UI UI类的用法全部内容,希望文章能够帮你解决html – Semantic-UI UI类的用法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1080577.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存