上显示默认浏览器项目符号点使用 YUI CSS 重置时

发布于 2024-09-10 06:12:01 字数 351 浏览 2 评论 0原文

我在页面上使用 YUI 3 CSS Reset,但想使用浏览器默认列表样式显示特定的无序列表。

我在下面的 URL 上放了一个示例页面来解释: http://www.nsmith.me.uk/list.php

我想要能够在页面上设置

    样式,就像未包含 css 重置脚本一样。例如,将 ?hideReset=1 添加到上面的 URL 中。

谁能告诉我重置后需要添加什么 CSS 才能实现此目的?

谢谢, 尼尔

I'm using YUI 3 CSS Reset on my page, but want to display a specific unordered list using the browsers default list styling.

I've put an example page up on the URL below to explain:
http://www.nsmith.me.uk/list.php

I want to be able to style <ul> on the page as if the css reset script wasn't included. For an example, add ?hideReset=1 onto the URL above.

Can anyone let me know what CSS I need to add after the reset to achieve this?

Thanks,
Neil

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆那么伤 2024-09-17 06:12:01

您将需要一些

margin-left: {xyz}px;
padding-left: {xyz}px;

(调整以适合)

并取回子弹

list-style-type: disc;

You will need some

margin-left: {xyz}px;
padding-left: {xyz}px;

(adjust to fit)

and to get the bullets back

list-style-type: disc;
很酷不放纵 2024-09-17 06:12:01

您还可以加载 YUI 的 base.css,一旦通过 reset.css 标准化,它将以一致的方式恢复大部分设置。

You can also load YUI's base.css which will restore most of the settings in a consistent way, once normalized via reset.css.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文