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
Deployment environment: docker container, liunx s...
Putting input and img on the same line, the img ta...
1. Make a repo file Refer to the official install...
PCIE has four different specifications. Let’s tak...
What is a sticky footer layout? Our common web pa...
Download Tomcat8 image [root@localhost ~]# docker...
Table of contents 1. Environmental Preparation 2....
Table of contents background Provide / Inject Ext...
Recently, I added a click-to-send email function t...
WeChat Mini Programs are becoming more and more p...
Let me first introduce an interesting property - ...
Introduction Describes the use cases and solution...
I started learning MySQL recently. The installati...
Table of contents 1. querySelector queries a sing...
In the front-end design draft, you can often see ...