<pre class="de1" style="box-sizing: border-box; overflow-wrap: normal; color: rgb(68, 68, 68); overflow: visible; padding: 0px; border: none; box-shadow: none; background-image: none; background-color: initial; font-family: Consolas, Monaco, "Lucida Console", monospace; font-size: 12px; text-align: justify; margin-top: 0px !important; margin-bottom: 0px !important; line-height: 20px !important;"><span class="kw1" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(0, 0, 0); overflow: visible; box-shadow: none; font-weight: bold; margin: 0px !important; line-height: 20px !important;">CSS 中 background标准写法如下:<br/>background</span><span class="sy0" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(0, 170, 0); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">:</span> <span class="re0" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(204, 0, 204); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">#ff0000</span> <span class="kw3" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(153, 50, 204); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">url</span><span class="br0" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(0, 170, 0); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">(</span>/i/eg_bg_03.gif<span class="br0" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(0, 170, 0); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">)</span> <span class="kw2" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(153, 51, 51); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">no-repeat</span> <span class="kw2" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(153, 51, 51); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">fixed</span> <span class="kw2" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(153, 51, 51); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">center</span> / cover<span class="sy0" style="padding: 0px; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; overflow-wrap: normal; color: rgb(0, 170, 0); overflow: visible; box-shadow: none; margin: 0px !important; line-height: 20px !important;">;</span></pre><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">这些参数从左到右依次是:</p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">background-color</p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">background-image</p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">background-repeat</p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">background-attachment</p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">background-position / background-size<br/>一定要注意的是 background-size 是 CSS3 的属性,它要与 background-position 配合使用,中间有一个斜杠分隔符。。</p><pre style="background-color:#262e37;color:#ffffff;font-family:'Consolas';font-size:11.3pt;"><span style="color:#66d9ef;font-style:italic;">background</span>: <span style="color:#a6e22e;">#ffffff </span><span style="color:#66d9ef;">url</span>(<span style="color:#fd971f;font-style:italic;">./chat.png</span>) <span style="color:#68e868;font-weight:bold;">no-repeat </span><span style="color:#ae81ff;">0 0</span><span style="color:#74ab30;">/</span><span style="color:#ae81ff;">41</span><span style="color:#68e868;font-weight:bold;">px </span><span style="color:#ae81ff;">40</span><span style="color:#68e868;font-weight:bold;">px</span>;</pre><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;">参考:<a href="https://www.2kss.com/34275.html">https://www.2kss.com/34275.html</a></p><p style="padding: 0px; border: 0px; background: rgb(255, 255, 255); box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, 微软雅黑; text-align: justify; white-space: normal; margin-top: 8px !important; margin-bottom: 8px !important;"><a href="https://www.cnblogs.com/hello-web/p/7237765.html">https://www.cnblogs.com/hello-web/p/7237765.html</a></p><p><br/></p>
phpstorm配置自动压缩js,css文件
前端实现 div块垂直居中的 5 种常用 CSS 方法总结
本文介绍了在 CSS 中实现将 div 内容在垂直方向上居中显示的几种常见方法,包括使用 Flexbox 布局、Grid 布局、绝对定位与 transform 属性以及 display: table-cell 和 vertical-align 属性的应用。读者可以根据自己的项目需求和个人偏好选择适合的方法来实现垂直居中效果。
在CSS中,flex是用于设置弹性布局(flexbox)的属性之一。flex属性是一个简写属性,包含了flex-grow、flex-shrink和flex-basis三个子属性。在给定的代码中,fle...
给form表单添加css样式pointer-events:none;
p{ width: 90%;/*写给不支持calc()的浏览器*/ width: calc(100% - (10px + 5px) * 2); /*注意运算符号后面必须留有空格,否则不生效*/...