Home > Web Front-end > HTML Tutorial > 小白求解_html/css_WEB-ITnose

小白求解_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:36:22
Original
977 people have browsed it

为什么新闻1的链接还是有下划线啊! 小白求解!
css部分代码:
#pagelist li a .lbt{
text-decoration: none;
}
html部分代码:



新闻列表




回复讨论(解决方案)

改成这样:

#pagelist li a{text-decoration: none;}
Copy after login


是 a 的下划线, 不是 span 的

我只想改变新闻1的下划线 而后面的时间下划线不改变

#pagelist li a {text-decoration: none;}#pagelist li a .ldt{text-decoration: underline;}
Copy after login

好的 ,谢谢楼上!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template