When displaying long data in HTML, you can cut off the data and display the complete data when the mouse moves over it. For example, consider the following situation. ![]() accomplish: Copy code The code is as follows:<a title="${siteBoardInfoList.boardUrl}"> <c:if test="${fn:length(siteBoardInfoList.boardUrl) >= 40}"> ${fn:substring(siteBoardInfoList.boardUrl,0,20)}......${fn:substring(siteBoardInfoList.boardUrl,fn:length(siteBoardInfoList.boardUrl)-21,fn:length(siteBoardInfoList.boardUrl))} </c:if> <c:if test="${fn:length(siteBoardInfoList.boardUrl) < 40}"> ${siteBoardInfoList.boardUrl} </c:if> </a> |
<<: How to implement digital paging effect code and steps in CSS
>>: Summary of the dockerfile-maven-plugin usage guide
Table of contents Preface Step 1: Setup and front...
To solve the problem that Deepin cannot start Goo...
MySQL 8 Windows version zip installation steps (d...
Table of contents Preface 1. With vue-cli 1. Defi...
Heart Attributes opacity: .999 creates a stacking...
Achieve results Implementation ideas The melting ...
First create a specific project directory for you...
Relative Length Units em Description: Relative len...
Creating a Cursor First, create a data table in M...
Sometimes it’s nice to see some nice scroll bar e...
Table of contents 1. How to obtain different view...
The relationship between Tomcat logs A picture is...
The previous article introduced the implementatio...
1. The catalina.bat must be set to UTF-8. If I do...
If you are not committed to becoming an artist, t...