李边界不保留元素(li border doesn't keep around element)

编程入门 行业动态 更新时间:2024-10-19 04:32:00
边界不保留元素(li border doesn't keep around element)

我正在尝试建立一个没有成功的菜单。 我正试图为我所有的li元素设置边框,但边框一直保持在底部。 如何在我的li元素周围转动边框?

看看我的代码: http : //jsfiddle.net/KByqr/

I'm trying to build a menu without sucess. I'm trying to set a border to all my li elements, but the border has kept on bottom. How can I turn the border all around my li element?

take a look at my code: http://jsfiddle.net/KByqr/

最满意答案

从这两行中删除-bottom :

border-bottom-style: solid; border-bottom-width: medium;

使他们:

border-style: solid; border-width: medium;

小提琴: http : //jsfiddle.net/KByqr/2/

Remove the -bottom from these two lines:

border-bottom-style: solid; border-bottom-width: medium;

Make them:

border-style: solid; border-width: medium;

Fiddle: http://jsfiddle.net/KByqr/2/

更多推荐

本文发布于:2023-08-06 03:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1444481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:边界   元素   li   border   element

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!