简体   繁体   English

用户代理样式表问题

[英]User Agent Style-sheet Issue

I have an issue on my website . 我的网站上有一个问题。 If you go to the consulting page you'll notice that the li are aligned left. 如果您转到咨询页面,您会发现li左对齐。 Firebug yields the follow in regards to the styles being applied: 对于所应用的样式,Firebug产生了以下方面:

text-align: -webkit-match-parent;

How do i get rid of that so that it has a natural indent like regular li's? 我该如何摆脱它,使其具有与常规li一样的自然缩进?

This is part of the of the default display properties in HTML5 . 这是HTML5中默认显示属性的一部分。

If you wish to "give up" on HTML5 you can use the previous version: 如果您希望在HTML5上“放弃”,可以使用以前的版本:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

This is HTML 4.01 strict - I believe you won't get that default value using it. 这是HTML 4.01严格标准-我相信您不会使用它获得该默认值。

It looks like you reference a few css pages so open up the one that has the element with the 看起来您引用了几张CSS页面,因此请打开包含元素与

text-align: -webkit-match-parent

and comment out that piece to start. 并注释掉该片段以开始。 then review the site and see if that returns things to a normal LI indent. 然后查看该站点,看看是否可以将其恢复为正常的LI缩进。

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

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