Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the A tag of jspXCMS

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this article, the editor introduces in detail "how to use the A tag of jspXCMS". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to use the A tag of jspXCMS" can help you solve your doubts.

The A tag is used to generate html's hyperlink tag a, such as my hyperlink.

In document management, you can add color, bold, italic, whether a new window opens and other attributes to the document title. In order to display these effects in the html page, you need to judge more in the template, using A tags can automatically deal with these attributes.

The bold and italics of the title need to be matched with the corresponding css to display the effect by adding strong and em to the class, such as class= "strong em".

Implementation class

Com.jspxcms.common.freemarker.AnchorDirective

Parameters.

Bean: entity objects, such as info, node.

The target attribute of the a tag of target:html. String. For example: _ blank.

Length: title length. Plastic surgery. If the title exceeds the specified length, it will be truncated, with two English letters accounting for one length.

Append: a substitute character that exceeds its length. String. Usually use...

The class attribute of the a tag of class:html. String.

The style attribute of the a tag of style:html. String.

Other attributes of the a tag of attrs:html. String. Such as: myattr=abc.

IsStyle: whether to handle colors, bold, and italics. Boolean. Default: true.

Example [A bean=info length='15' append='...'/] [A bean=node length='20' append=' …' Target='_blank'/] read here, this article "how to use the A tag of jspXCMS" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself. If you want to know more about related articles, you are 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report