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
1. Create the /usr/local/services/zookeeper folde...
nginx server nginx is an excellent web server tha...
This article shares a collection of Java problems...
This article example shares the specific code of ...
After I installed MySQL, when I tried to save and...
Table of contents Question: When the button is cl...
Table of contents Vue this.$store.state.xx.xx Get...
Introduction yum (Yellow dog Updater, Modified) i...
Preface In our daily work, we often need to renam...
0x0 Test Environment The headquarters production ...
<br /> Focusing on the three aspects of text...
Preface I recently encountered a problem at work....
There are many tasks to be done in search engine o...
When installing Docker on Windows 10, after selec...
If you are using Alibaba Cloud Server, you need t...