底边宽度? [英] width of bottom-border?

查看:48
本文介绍了底边宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

宽度,我不是指体重。我有一排< li>',底部边框是

。我希望底部边框只能达到< li>

的90%(居中)


有没有办法做到这一点?


我有这种格式:


CSS:

li {

border -bottom:1px solid#00ff00;

}

HTML:

< ul>

< li> ;这< / li>

< li>那< / li>

< li>其他< / li>

< ; li> bleh< / li>

< / ul>

By width, I don''t mean weight. I have a row of <li>''s, with a
bottom-border. I want the bottom-border to only go 90% of the <li>
(centered)

Is there any way to do this?

I have it in this format:

CSS:
li {
border-bottom: 1px solid #00ff00;
}
HTML:
<ul>
<li>this</li>
<li>that</li>
<li>the other</li>
<li>bleh</li>
</ul>

推荐答案




10月30日下午4:18,FuzzyLogik < taw ... @ gmail.comwrote:


On Oct 30, 4:18 pm, "FuzzyLogik" <taw...@gmail.comwrote:

宽度,我不是指体重。我有一排< li>',底部边框是

。我希望底部边框只能达到< li>

的90%(居中)


有没有办法做到这一点?


我有这种格式:


CSS:

li {

border -bottom:1px solid#00ff00;


} HTML:

< ul>

< li>这< / li>

< li>那< / li>

< li>其他< / li>

< li> bleh< ; / li>

< / ul>
By width, I don''t mean weight. I have a row of <li>''s, with a
bottom-border. I want the bottom-border to only go 90% of the <li>
(centered)

Is there any way to do this?

I have it in this format:

CSS:
li {
border-bottom: 1px solid #00ff00;

}HTML:
<ul>
<li>this</li>
<li>that</li>
<li>the other</li>
<li>bleh</li>
</ul>



!另外!


在同一个列表中,当我有项目翻转时,它不会像

第一行,例如:

| ---这是一个列表项---- |

| ---这是列表项---- |

| ---这是一个列表项---- |

| ---这是一个列表项--- - |

| ---这是一个更长的------- |

|列表项------------- ------ |


我希望将所有内容填充到6px。

!Also!

On the same list, when I have items rollover, it''s not padding out like
the first line, e.g.:
|---This is a list item----|
|---This is a list item----|
|---This is a list item----|
|---This is a list item----|
|---This is a longer-------|
|List item-------------------|

I want it all to be padded out 6px.


在文章中

< 11 ********************* @ i42g2000cwa.googlegroups。 com>,

" FuzzyLogik" < ta **** @ gmail.comwrote:


现在不是时候发贴网址了吗?


- < br $> b $ b dorayme
In article
<11*********************@i42g2000cwa.googlegroups. com>,
"FuzzyLogik" <ta****@gmail.comwrote:

is it not time for you to post a url?

--
dorayme




dorayme写道:

dorayme wrote:

在文章

< 11 ********************* @ i42g2000cwa.googlegroups。 com>,

" FuzzyLogik" < ta **** @ gmail.comwrote:


现在不是时候发贴网址了吗?


-

dorayme
In article
<11*********************@i42g2000cwa.googlegroups. com>,
"FuzzyLogik" <ta****@gmail.comwrote:

is it not time for you to post a url?

--
dorayme

http: //www.phazm.net/csstest/list01.html


嗯,我不知道我在工作中做错了什么,但现在是那个

包裹正确填充,所以忘了:)


但我希望绿色底边不要触摸蓝色边框,

没有将蓝色边框推出超过200px(目前它在



http://www.phazm.net/csstest/list01.html

Well, I don''t know what I was doing wrong at work, but now the one that
wraps around is being padded correctly, so forget that :)

But I want the green bottom-border to NOT touch the blue border,
WITHOUT pushing the blue border out any more than 200px (which it''s at
currently)


这篇关于底边宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆