开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜