René's URL Explorer Experiment


Title: CSS 实现文本的单行和多行溢出省略效 · Issue #130 · sisterAn/JavaScript-Algorithms · GitHub

Open Graph Title: CSS 实现文本的单行和多行溢出省略效 · Issue #130 · sisterAn/JavaScript-Algorithms

X Title: CSS 实现文本的单行和多行溢出省略效 · Issue #130 · sisterAn/JavaScript-Algorithms

Description: 单行文本 .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } overflow: hidden(文字长度超出限定宽度,则隐藏超出的内容) white-space: nowrap(设置文字在一行显示,不能换行) text-overflow: ellipsis(规定当文本溢出时,显示省略符号来代表被修剪的文本) 多行文本(css) .text { display: -webkit...

Open Graph Description: 单行文本 .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } overflow: hidden(文字长度超出限定宽度,则隐藏超出的内容) white-space: nowrap(设置文字在一行显示,不能换行) text-overflow: ellipsis(规定当文本溢出时,显示省略符号来代表被修...

X Description: 单行文本 .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } overflow: hidden(文字长度超出限定宽度,则隐藏超出的内容) white-space: nowrap(设置文字在一行显示,不能换行) text-overflow: ellipsis(规定当文本溢出时,显示省略符号来代表被修...

Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/130

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS 实现文本的单行和多行溢出省略效","articleBody":"**单行文本**\r\n```css\r\n.text {\r\n  overflow: hidden; \r\n  text-overflow: ellipsis; \r\n  white-space: nowrap;\r\n}\r\n```\r\n- `overflow: hidden`(文字长度超出限定宽度,则隐藏超出的内容)\r\n- `white-space: nowrap`(设置文字在一行显示,不能换行)\r\n- `text-overflow: ellipsis`(规定当文本溢出时,显示省略符号来代表被修剪的文本)\r\n\r\n**多行文本(css)**\r\n```css\r\n.text {\r\n  display: -webkit-box;\r\n  overflow: hidden;\r\n  -webkit-line-clamp: 2;\r\n  -webkit-box-orient: vertical;\r\n  text-overflow: ellipsis; \r\n}\r\n```\r\n- `-webkit-line-clamp: 2`(用来限制在一个块元素显示的文本的行数, 2 表示最多显示 2 行。 为了实现该效果,它需要组合其他的WebKit属性)\r\n- `display: -webkit-box`(和 1 结合使用,将对象作为弹性伸缩盒子模型显示 )\r\n- `-webkit-box-orient: vertical`(和 1 结合使用 ,设置或检索伸缩盒对象的子元素的排列方式 )\r\n- `overflow: hidden`(文本溢出限定的宽度就隐藏内容)\r\n- `text-overflow: ellipsis`(多行文本的情况下,用省略号“…”隐藏溢出范围的文本)\r\n\r\n**多行文本(js)**\r\n- 监听DOM尺寸变化\r\n- 判断是否溢出 scrollHeight \u003e offsetHeight\r\n- 二分查找多行截取字符临界值(算法的解法:判断字符串是否溢出,二分查找字符串溢出临界子串,控制...显示)","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-11-19T23:51:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/130/JavaScript-Algorithms/issues/130"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b83fa62e-fcc6-2753-8826-f12891a3775b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFA4:178041:EC7AA9:146C874:696A8622
html-safe-nonced1530aa41f88e36215978f6af5b37feb122a0e04ad42f331e8f60dced4d921c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkE0OjE3ODA0MTpFQzdBQTk6MTQ2Qzg3NDo2OTZBODYyMiIsInZpc2l0b3JfaWQiOiIyNDM3NDYxNzMyNzQ5ODE5MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9c66d77d31addf33a9579b25363629d243f4fea518e17c8e7e69eaf73196ecfc
hovercard-subject-tagissue:747021941
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sisterAn/JavaScript-Algorithms/130/issue_layout
twitter:imagehttps://opengraph.githubassets.com/999f6670b09f10572b3f0572c89d81bc14d93f4486b548d1a72e34be1a7c57e9/sisterAn/JavaScript-Algorithms/issues/130
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/999f6670b09f10572b3f0572c89d81bc14d93f4486b548d1a72e34be1a7c57e9/sisterAn/JavaScript-Algorithms/issues/130
og:image:alt单行文本 .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } overflow: hidden(文字长度超出限定宽度,则隐藏超出的内容) white-space: nowrap(设置文字在一行显示,不能换行) text-overflow: ellipsis(规定当文本溢出时,显示省略符号来代表被修...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesisterAn
hostnamegithub.com
expected-hostnamegithub.com
None913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377
turbo-cache-controlno-preview
go-importgithub.com/sisterAn/JavaScript-Algorithms git https://github.com/sisterAn/JavaScript-Algorithms.git
octolytics-dimension-user_id19721451
octolytics-dimension-user_loginsisterAn
octolytics-dimension-repository_id252061924
octolytics-dimension-repository_nwosisterAn/JavaScript-Algorithms
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id252061924
octolytics-dimension-repository_network_root_nwosisterAn/JavaScript-Algorithms
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5998c30593994bf2589055aef7b22d368a499367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sisterAn/JavaScript-Algorithms/issues/130#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsisterAn%2FJavaScript-Algorithms%2Fissues%2F130
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsisterAn%2FJavaScript-Algorithms%2Fissues%2F130
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sisterAn%2FJavaScript-Algorithms
Reloadhttps://github.com/sisterAn/JavaScript-Algorithms/issues/130
Reloadhttps://github.com/sisterAn/JavaScript-Algorithms/issues/130
Reloadhttps://github.com/sisterAn/JavaScript-Algorithms/issues/130
sisterAn https://github.com/sisterAn
JavaScript-Algorithmshttps://github.com/sisterAn/JavaScript-Algorithms
Notifications https://github.com/login?return_to=%2FsisterAn%2FJavaScript-Algorithms
Fork 649 https://github.com/login?return_to=%2FsisterAn%2FJavaScript-Algorithms
Star 5.7k https://github.com/login?return_to=%2FsisterAn%2FJavaScript-Algorithms
Code https://github.com/sisterAn/JavaScript-Algorithms
Issues 158 https://github.com/sisterAn/JavaScript-Algorithms/issues
Pull requests 0 https://github.com/sisterAn/JavaScript-Algorithms/pulls
Actions https://github.com/sisterAn/JavaScript-Algorithms/actions
Projects 0 https://github.com/sisterAn/JavaScript-Algorithms/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/sisterAn/JavaScript-Algorithms/security
Please reload this pagehttps://github.com/sisterAn/JavaScript-Algorithms/issues/130
Insights https://github.com/sisterAn/JavaScript-Algorithms/pulse
Code https://github.com/sisterAn/JavaScript-Algorithms
Issues https://github.com/sisterAn/JavaScript-Algorithms/issues
Pull requests https://github.com/sisterAn/JavaScript-Algorithms/pulls
Actions https://github.com/sisterAn/JavaScript-Algorithms/actions
Projects https://github.com/sisterAn/JavaScript-Algorithms/projects
Security https://github.com/sisterAn/JavaScript-Algorithms/security
Insights https://github.com/sisterAn/JavaScript-Algorithms/pulse
New issuehttps://github.com/login?return_to=https://github.com/sisterAn/JavaScript-Algorithms/issues/130
New issuehttps://github.com/login?return_to=https://github.com/sisterAn/JavaScript-Algorithms/issues/130
CSS 实现文本的单行和多行溢出省略效https://github.com/sisterAn/JavaScript-Algorithms/issues/130#top
字节https://github.com/sisterAn/JavaScript-Algorithms/issues?q=state%3Aopen%20label%3A%22%E5%AD%97%E8%8A%82%22
平安https://github.com/sisterAn/JavaScript-Algorithms/issues?q=state%3Aopen%20label%3A%22%E5%B9%B3%E5%AE%89%22
https://github.com/sisterAn
https://github.com/sisterAn
sisterAnhttps://github.com/sisterAn
on Nov 19, 2020https://github.com/sisterAn/JavaScript-Algorithms/issues/130#issue-747021941
字节https://github.com/sisterAn/JavaScript-Algorithms/issues?q=state%3Aopen%20label%3A%22%E5%AD%97%E8%8A%82%22
平安https://github.com/sisterAn/JavaScript-Algorithms/issues?q=state%3Aopen%20label%3A%22%E5%B9%B3%E5%AE%89%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.