EOL不使用< br /> [英] EOL without using <br />
问题描述
我明白< br />在CSS中是边缘的,所以我正在寻找一个替换EOL角色的
。我在两种方法中都失败了并且
寻求建议。
我尝试的第一件事是使用unicode EOL characer,这是
000A。我认为十进制表示法是10,所以尝试了:
第1行
第2行
不行。我的想法在这里出了什么问题?
第二种方法是使用清单。由于菜单已被弃用,我尝试了
:
ul.menoo {list-style-image:none; }
< ul class =" menoo">
< li>第1行< / li>
< li>第2行< / li>
< / ul>
我仍然得到默认点(galeon浏览器)。
-
Haines Brown
br **** @ hartford-hwp.com
kb****@arrl.net
www.hartford-hwp.com
I understand that <br /> is marginal in CSS, and so am looking for a
substitute for the EOL character. I''ve failed in both approaches and
seek advice.
The first thing I tried was to use the unicode EOL characer, which is
000A. I figured with was 10 in decimal notation, and so tried:
line 1
line 2
No go. What was wrong with my thinking here?
The second approach was to use a list. Since menu is deprecated, I
tried:
ul.menoo { list-style-image: none; }
<ul class="menoo">
<li>line 1</li>
<li>line 2</li>
</ul>
I still get the default dot (galeon browser).
--
Haines Brown
br****@hartford-hwp.com
kb****@arrl.net
www.hartford-hwp.com
推荐答案
Haines Brown写道:
Haines Brown wrote:
我明白< br />在CSS中是边缘的,所以我正在寻找替代EOL角色的替代品。我在这两种方法中都失败了并且寻求建议。
我尝试的第一件事就是使用unicode EOL characer,它是
000A。我认为十进制符号是10,所以尝试了:
第1行
第2行
没有去。我的想法在这里出了什么问题?
000A是空格,并根据正常的HTML规则进行标准化。
第二种方法是使用列表。
为了什么?你想要开始一个新行的原因非常重要。
这样做。
由于菜单已被弃用,我试过了:
ul.menoo {list-style-image:none; }
< ul class =" menoo">
< li>第1行< / li>
< li>第2行< / li>
< / ul>
我仍然得到默认点(galeon浏览器)。
I understand that <br /> is marginal in CSS, and so am looking for a
substitute for the EOL character. I''ve failed in both approaches and
seek advice.
The first thing I tried was to use the unicode EOL characer, which is
000A. I figured with was 10 in decimal notation, and so tried:
line 1 line 2
No go. What was wrong with my thinking here?
000A is whitespace, and is normalised according to normal HTML rules.
The second approach was to use a list.
For what? Why you want to start a new line is pretty important in how you
go about doing it.
Since menu is deprecated, I
tried:
ul.menoo { list-style-image: none; }
<ul class="menoo">
<li>line 1</li>
<li>line 2</li>
</ul>
I still get the default dot (galeon browser).
< URL:http:// www.w3.org/TR/REC-CSS2/generate.html#lists>
list-style-image属性适用于列表项,而不是列表
自己。此外,你想将list-style-type属性设置为
''none''(默认通常是''disc'',这是你看到的点)。
-
Jim Dabell
<URL:http://www.w3.org/TR/REC-CSS2/generate.html#lists>
The list-style-image property applies to list-items, not the lists
themselves. Furthermore, you want to set the list-style-type property to
''none'' (the default is usually ''disc'', which is the dot you are seeing).
--
Jim Dabell
Haines Brown写道:
Haines Brown wrote:
ul.menoo {list-style-image:none; }
ul.menoo { list-style-image: none; }
ul.menoo {list-style-type:none; }
在另一个响应中有警告:首先使用正确的标记,然后使用正确的标记,然后应用css。
-
Brian
按照我地址中的说明给我发电子邮件
ul.menoo { list-style-type: none; }
With the caveat in the other response: use the correct markup first,
then apply the css.
--
Brian
follow the directions in my address to email me
" Haines Brown" <峰; br **** @ teufel.hartford-hwp.com>在消息中写道
news:87 ************ @ teufel.hartford-hwp.com ...
"Haines Brown" <br****@teufel.hartford-hwp.com> wrote in message
news:87************@teufel.hartford-hwp.com...
我明白< br />在CSS中是边缘的,
I understand that <br /> is marginal in CSS,
只是好奇 - 这是什么意思?
Just curious--what do you mean by that?
这篇关于EOL不使用< br />的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!