当前位置:首页 > Web开发 > 正文

建议遵循以下顺序: 布局定位属性:display / position / float / clear / visib

2024-03-31 Web开发

建议遵循以下挨次:

构造定位属性:display / position / float / clear / visibility / overflow(建议 display 第一个写,终究关系到模式)

自身属性:width / height / margin / padding / border / background

文本属性:color / font / text-decoration / text-align / vertical-align / white- space / break-word

其他属性(CSS3):content / cursor / border-radius / box-shadow / text-shadow / background:linear-gradient …

.jdc { display: block; position: relative; float: left; width: 100px; height: 100px; margin: 0 10px; padding: 20px 0; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; color: #333; background: rgba(0,0,0,.5); -webkit-border-radius: 10px; -moz-border-radius: 10px; -o-border-radius: 10px; -ms-border-radius: 10px; border-radius: 10px; }

0025 CSS属性书写挨次

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32554.html