对象已移动

可在此处找到该文档 CSS :has – New Self New Life
New Self New Life
No Result
View All Result
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices
New Self New Life
No Result
View All Result
Home Softwares

CSS :has

by admin
3 years ago
in Softwares
Object.entries
Share on FacebookShare on Twitter

For so long as builders have written CSS code, we have been determined to have a technique to permit styling a dad or mum ingredient based mostly youngster traits. That is not been potential till now. CSS has launched the :has pseudo-class which permits styling a dad or mum based mostly on a relative CSS selector!

Let’s take a look at just a few use instances for :has in CSS:

/*
  If an `a` ingredient incorporates a picture, set the `a`'s show
*/
a:has(img) {
  show: block;
}

/*
  If a `determine` has a `caption` with a `multiline` class
  enable the `determine` to have any peak
*/
determine {
  peak: 200px;
}
determine:has(caption.multiline) {
  peak: auto;
}

/*
  Conceal an advert containing `div` till adverts load
  and have been injected
*/
.ad-container {
  show: none;
}
.ad-container:has(.advert) {
  show: block;
}

/*
  If we've got an `article` ingredient with out a heading,
  add high padding as a result of `H1`s have high padding
*/
article:not(:has(h1)) {
  padding-top: 20px;
}

Apple’s Safari is the primary browser to assist :has , although we should always see others rapidly comply with go well with because it’s a part of the official CSS spec. Now that we’ve got this new pseudo-class, do you suppose you will use it a lot? Or will you persist with your present workarounds?

Website performance monitoring
Website performance monitoring
Website performance monitoring
Website performance monitoring
  • 9 Mind-Blowing Canvas Demos

    9 Thoughts-Blowing Canvas Demos

    The <canvas> ingredient has been a revelation for the visible specialists amongst our ranks.  Canvas supplies the means for unbelievable and environment friendly animations with the added bonus of no Flash; these builders can flash their superior JavaScript abilities as an alternative.  Listed here are 9 unbelievable canvas demos that…

  • Write Simple, Elegant and Maintainable Media Queries with Sass
  • Use Custom Missing Image Graphics Using Dojo
  • Fullscreen API

    Fullscreen API

    As we transfer towards extra true internet purposes, our JavaScript APIs are doing their greatest to maintain up.  One quite simple however helpful new JavaScript API is the Fullscreen API.  The Fullscreen API supplies a programmatic option to request fullscreen show from the consumer, and exit…



Source link
Tags: CSS
Previous Post

What Celebs Looked Like At Their First Oscar Red Carpet

Next Post

The Most Unforgettable Oscar Dresses Of The Century

Related Posts

Xero Salesforce Integration – The Definitive Guide
Softwares

Xero Salesforce Integration – The Definitive Guide

by admin
August 20, 2025
BrowserStack launches Chrome extension that bundles 10+ manual web testing tools
Softwares

BrowserStack launches Chrome extension that bundles 10+ manual web testing tools

by admin
August 18, 2025
20+ Best Titles Templates for DaVinci Resolve in 2025 — Speckyboy
Softwares

20+ Best Titles Templates for DaVinci Resolve in 2025 — Speckyboy

by admin
August 22, 2025
Apple launches iOS 26 beta 3, faces Fortnite developer win in court
Softwares

Apple launches iOS 26 beta 3, faces Fortnite developer win in court

by admin
August 17, 2025
Graph analysis AI model achieves training up to 95 times faster on a single GPU
Softwares

Graph analysis AI model achieves training up to 95 times faster on a single GPU

by admin
August 21, 2025
Next Post
The Most Unforgettable Oscar Dresses Of The Century

The Most Unforgettable Oscar Dresses Of The Century

Indico 5 launched to accelerate automation on unstructured data

Indico 5 launched to accelerate automation on unstructured data

  • Trending
  • Comments
  • Latest
I Only Have More Questions After Another Bizarre Outing With The Harrigans

I Only Have More Questions After Another Bizarre Outing With The Harrigans

April 20, 2025
10 Best Netflix Original Thriller Shows, Ranked

10 Best Netflix Original Thriller Shows, Ranked

June 22, 2025
‘Rust’ armorer’s involuntary manslaughter conviction upheld in fatal shooting – National

‘Rust’ armorer’s involuntary manslaughter conviction upheld in fatal shooting – National

October 1, 2024
Lil Nas X hospitalized in Los Angeles for ‘possible overdose,’ say reports – National

Lil Nas X hospitalized in Los Angeles for ‘possible overdose,’ say reports – National

August 22, 2025
Harvey Weinstein case judge declares mistrial on remaining rape charge – National

Harvey Weinstein case judge declares mistrial on remaining rape charge – National

June 13, 2025
BrowserStack launches Chrome extension that bundles 10+ manual web testing tools

BrowserStack launches Chrome extension that bundles 10+ manual web testing tools

August 18, 2025
Kid Cudi says he ‘hated every minute’ of testifying in Diddy trial – National

Kid Cudi says he ‘hated every minute’ of testifying in Diddy trial – National

August 17, 2025
Best AI Webcams For Video Calls In 2025

Best AI Webcams For Video Calls In 2025

August 21, 2025
Bass Canyon 2025: Excision’s Festival Evolves With Stunning Crater Stage and Rising Stars

Bass Canyon 2025: Excision’s Festival Evolves With Stunning Crater Stage and Rising Stars

August 22, 2025
iPhone 17 release date, iOS 26 features and everything else to know about Apple’s upcoming lineup

iPhone 17 release date, iOS 26 features and everything else to know about Apple’s upcoming lineup

August 22, 2025
Lost’s Daniel Dae Kim On Ethnic-Specific Casting

Lost’s Daniel Dae Kim On Ethnic-Specific Casting

August 22, 2025
Blue Eye Samurai Season 2 Plot Details, Release Date Window & More Teased

Blue Eye Samurai Season 2 Plot Details, Release Date Window & More Teased

August 22, 2025
Meta Gains New Ad Safety Certifications for Facebook and Instagram

Meta Rolls Out Changes to Its Ad Billing Settings

August 22, 2025
Lil Nas X hospitalized in Los Angeles for ‘possible overdose,’ say reports – National

Lil Nas X hospitalized in Los Angeles for ‘possible overdose,’ say reports – National

August 22, 2025
Ex-Mastodon Guitarist Brent Hinds Dead at 51

Ex-Mastodon Guitarist Brent Hinds Dead at 51

August 21, 2025
David Beckham’s strict warning for daughter Harper’s future suitors

David Beckham’s strict warning for daughter Harper’s future suitors

August 21, 2025
New Self New Life

Your source for entertainment news, celebrities, celebrity news, and Music, Cinema, Digital Lifestyle and Social Media and More !

Categories

  • Celebrity
  • Cinema
  • Devices
  • Digital Lifestyle
  • Entertainment
  • Music
  • Social Media
  • Softwares
  • Uncategorized

Recent Posts

  • Bass Canyon 2025: Excision’s Festival Evolves With Stunning Crater Stage and Rising Stars
  • iPhone 17 release date, iOS 26 features and everything else to know about Apple’s upcoming lineup
  • Lost’s Daniel Dae Kim On Ethnic-Specific Casting
  • Home
  • Disclaimer
  • DMCA
  • Privacy Policy
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2021 New Self New Life.
New Self New Life is not responsible for the content of external sites. slotsfree  creator solana token

No Result
View All Result
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices

Copyright © 2021 New Self New Life.
New Self New Life is not responsible for the content of external sites.

New Self New Life