How to judge the title of the homepage and the length of the overview
Source: Internet
Author: User
How to judge the title and length of the homepage article is similar to that of Youzai Tourism Network. if the title is too long, the introduction will be reduced accordingly .. how to implement it, strlen & nbsp; the total length limit should first take the rest of the title for the introduction ..., to explore the limit on the total length of strlen, just give the rest of the title to the introduction ..., you can directly use css to control the title of the homepage and add the description length. how can this problem be determined?
Similar to Youzai Tourism Network
If the title is too long, the introduction will be reduced accordingly. how can this problem be achieved?
------ Solution --------------------
Strlen
To limit the total length, just give the rest of the title to the introduction...
------ Solution --------------------
Discussion
Strlen
To limit the total length, just give the rest of the title to the introduction...
------ Solution --------------------
You can directly use css to control the automatic length...
------ Solution --------------------
Either php is processed as a ellipsis when it is generated, or it is controlled by CSS upstairs.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service