Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章不能显示全部名称+文章标题太长如何解决 #3814

Open
Jc-1 opened this issue Sep 26, 2024 · 3 comments
Open

文章不能显示全部名称+文章标题太长如何解决 #3814

Jc-1 opened this issue Sep 26, 2024 · 3 comments

Comments

@Jc-1
Copy link

Jc-1 commented Sep 26, 2024

问题1
image
如果 文章标题过程,鼠标悬停怎么显示title,我看好多站点,都带有一个悬浮小弹框,显示全称,希望博主优化一下,或者是我没有找到。

问题2
image
在content里面有一个wordNum="50" 参数可以显示文章显示的字数,如果是stl:a 标签解析出来的文章名,过长。 如何设置显示一定长度的文章标题

感谢博主的讲解 嘻嘻~

@starlying
Copy link
Contributor

可以采用嵌套的方法实现:

<stl:a><stl:content type="Title" wordNum="50"></stl:a>

@Jc-1
Copy link
Author

Jc-1 commented Sep 30, 2024 via email

@jiangbin4586
Copy link

<stl:a title="{Content.Title}"><stl:content type="Title" wordNum="50"></stl:a>这样写就可以解决。50是限制显示字数,a里面的title是鼠标划过上显示的文字。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants