In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Blog link: https://blog.51cto.com/13969817
In terms of personal preferences, I prefer SharePoint's Olso style, with the navigation bar at the top, but it would be perfect if some of my new pages were shown in the navigation drop-down menu. So how can I improve this experience?
Ideally, I want each item in the drop-down menu to be on one line. Let's look at the navigation with the drop-down menu. You can see that there is a class: dynamic, double-click and copy it, and then add a rule under the right style tab. We can set the width to a specific pixel width or we can set its width to auto, so it can be automatically set according to the size of the screen. I think we need to add Important because this is an important rule, and we don't need to change lines yet.
Add the Rule under the Style tag, sample code:
.dynamic {
Width: auto! important
White-space: nowrap! important
}
Let's take a look at the effect. By expanding the drop-down menu of navigation, we can see that the text in the link is displayed on one line, and the effect is very good. If you want to keep it permanently, you need to copy this rule, then paste it into the stylesheet and save it. This will permanently use this rule.
What if we have multiple links in the navigation drop-down menu, what if we want to add some space between the submenu items?
Let's continue to add a rule to the dynamic class:
Add the Rule under the Style tag, sample code:
.dynamic li {
Padding: 5px! important
Border-top: 2px solid lightgrey! important
}
Let's take a look at the effect, expand the navigation drop-down menu, the link is displayed in the form of a border, the effect is good.
In order to keep these changes permanently, we made the corresponding changes in the stylesheet and saved them:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.