简体   繁体   English

下划线动画的CSS导航菜单博客

[英]Animated underline Css Navigation menu blogger

I want to underline the hover for page buttons. 我想在页面按钮的下划线下划线。 How can I adapt these codes to my blogger Page list? 如何使这些代码适应我的博客页面列表?

 .top-nav .PageList { list-style: none; padding: 0; & > li { display: inline-block; & ~ li { margin-left: 1em; } } a { color: #666; text-decoration: none; &:focus, &:hover { color: #CF000F; &:after { opacity: 1; width: 100%; } } &:after { margin: 0 auto; content: ''; display: block; border-top: 1px solid; border-top-color: inherit; width: 0%; opacity: 0; transition: .25s; 

Here is my blog 这是我的博客

https://ubuntuvpssupport.blogspot.com https://ubuntuvpssupport.blogspot.com

Blogger provides theme settings. Blogger提供了主题设置。 Go to theme designer and there go to the tab called "Advanced" in the left panel. 转到主题设计器,然后转到左侧面板中的“高级”选项卡。 In this Advanced tab, last option is "Add css" where you can add any custom styles. 在此“高级”选项卡中,最后一个选项是“添加CSS”,您可以在其中添加任何自定义样式。

You can add below style there. 您可以在此处添加以下样式。

a:hover, .action-link:hover {text-decoration: underline}

You can also refer guide here https://support.google.com/blogger/answer/176245?hl=en 您也可以在此处参考指南https://support.google.com/blogger/answer/176245?hl=zh_CN

Hope it helps you:) 希望对您有帮助:)

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

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