zl程序教程

您现在的位置是:首页 >  其他

当前栏目

SAP Spartacus里的bootstrap button usage

SAPBootstrap Spartacus button Usage
2023-09-14 09:02:54 时间

package.json里对bootstrap的引用:

The .btn classes are designed to be used with the element. However, you can also use these classes on or elements (though some browsers may apply a slightly different rendering).
When using button classes on elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role=“button” to appropriately convey their purpose to assistive technologies such as screen readers.

<a class="btn btn-primary" href="#" role="button">Link</a>
<button class="btn btn-primary" type="submit">Button</button>
<input class="btn btn-primary" type="button" value="Input">
<input class="btn btn-primary" type="submit" value="Submit">
<input class="btn btn-primary" type="reset" value="Reset">

btn-sm和btn-lg分别代表不同尺寸的button.

https://thesassway.com/understanding-placeholder-selectors/

更多Jerry的原创文章,尽在:“汪子熙”: