In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to set up the dream weaving dedecms arclist cycle to judge the first li, then add a fixed css otherwise do not add, I believe most people do not understand, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to set the arclist loop of Weaving Dream dedecms to judge the first li, then add a fixed css or not?
In the arclist loop of dedecms, it is judged that if it is the first li, add a fixed css, otherwise do not add
After testing, it is also applicable in the channel tag.
It is written as follows:
The code is as follows:
{dede:arclist row=4 flag='p'} [field:global.autoindex/] {/ dede:arclist} [field:global name=autoindex runphp= "yes"] (@ me==1)? @ me= "class=on": @ me= ""; [/ field:global]
This sentence means that if the loop is the first, class=on is added, otherwise it is empty.
Note: there are two equal signs in the red part.
The judgment case of attached channel
{dede:channel type='son' typeid='3'} [field:typename/] {/ dede:channel} how to set up the arclist loop of dream weaving dedecms to judge the first li, then add a fixed css, otherwise do not add all the content, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.