开发者

How do I create sub-classes in standard <style> tags?

开发者 https://www.devze.com 2023-01-23 18:03 出处:网络
For example, I may want to make create a div.St开发者_运维百科yle1 block where all <img /> elements within this type of div are given certain properties.

For example, I may want to make create a div.St开发者_运维百科yle1 block where all <img /> elements within this type of div are given certain properties.

Is this possible? If so, what is the proper syntax?


The syntax is

 div.Style1 img { border: 3px red solid }

see also CSS basics at W3schools

0

精彩评论

暂无评论...
验证码 换一张
取 消