简体   繁体   English

显示默认的浏览器项目符号点 <ul> 使用YUI CSS重置时

[英]Showing default browser bullet points on a <ul> when using YUI CSS reset

I'm using YUI 3 CSS Reset on my page, but want to display a specific unordered list using the browsers default list styling. 我在页面上使用YUI 3 CSS Reset,但希望使用浏览器的默认列表样式显示特定的无序列表。

I've put an example page up on the URL below to explain: http://www.nsmith.me.uk/list.php 我在下面的URL上放置了一个示例页面来说明: 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. 我希望能够在页面上设置<ul>样式,就像不包含CSS重置脚本一样。 For an example, add ?hideReset=1 onto the URL above. 例如,将?hideReset = 1添加到上面的URL上。

Can anyone let me know what CSS I need to add after the reset to achieve this? 谁能让我知道重置后需要添加哪些CSS才能实现?

Thanks, Neil 谢谢,尼尔

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;

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM