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
mysql master-slave configuration 1. Preparation H...
There are two types of Linux system time. (1) Cal...
During system maintenance, you may need to check ...
Table of contents Preface Background data splicin...
Recently, new projects have used springcloud and ...
This article shares the specific code of js to im...
Table of contents 1. What is a custom instruction...
Table of contents Preface Style Function Descript...
About Event: MySQL 5.1 began to introduce the con...
Detailed explanation of the order of Mysql query ...
Copy code The code is as follows: <!DOCTYPE ht...
You may have noticed that the src or CSS backgroun...
Preface Every good habit is a treasure. This arti...
Table of contents Deploy httpd with docker contai...
1. Tools directory file structure [root@www tools...