Posts

Home / Posts

DUX主题文章页尾自定义版权提示模版

December 6, 2024 | News | No Comments

DUX主题6.8版本上线的新功能:文章页尾自定义版权提示,一个十分贴心的提示功能。 DUX主题文章页尾自定义版权提示模版: 版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权 文章名称:《%POSTNAME%》 文章链接:<a href=”%POSTLINK%”>%POSTLINK%</a> 本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。 模版中允许使用的简码: %POSTNAME% 表示 文章名称 %POSTLINK% 表示 文章链接 本文属原创,转载请注明原文:https://themebetter.com/dux-post-copyright.html Keyword: 企业管理咨询

By

CSS跨浏览器开发原则

December 6, 2024 | News | No Comments

在互联网设计过程中,可以说没有什么比开发出一个能够在当前所有浏览器下都具有同样吸引眼球效果的设计更让人高兴的事了。遗憾的是,这个目标似乎都被普遍认定为不太可能实现。甚至有些人抛弃了对完美的追求,认为跨浏览器的兼容性并不是必备的。 虽然我也同意每个项目都实现浏览器的完全兼容性,即所有web浏览器(暂且不考虑手机浏览器)用户都能体验相同的完美设计效果是永远都不可能的,但是,我相信大多数情况下近乎完全兼容性却是可以实现的。作为开发人员,我们的目标不应该仅仅停留在让项目在每个浏览器都能运作,而应该尽可能用最少的代码让项目在每个浏览器中都能实现尽善尽美,让今后网站的维护更加轻松。 这篇文章将向大家介绍一些最为重要的CSS 开发原则和技巧,希望能够帮助前端开发的新手和老生用最少的CSS代码实现跨浏览器体验的一致性。 CSS盒模型( Box Model) CSS盒模型是网页布局的基础,如果你想要实现跨浏览器布局的一致性,这是第一个必需透彻学习的对象。好在,它并不难掌握而且通常在所有浏览器上的效果都是一样的,除了某些情况下会与IE的版本相关(这个后面会详细谈到)。 CSS盒模型负责计算: 一个块级(block-level)元素占用多少空间。 边框(border)和/或外边距(margins)是否重叠或崩溃。 一个盒的尺寸大小。 从某种程度上说,它可决定一个盒与页面中的其他内容的相对位置。 CSS盒模型的基本规则如下: 块级(Block-level )元素基本上是矩形。 块元素的尺寸是通过宽、高、填充、边框和外边距来计算的。 如果没有指定高度,块元素将会依据它所包含的内容来显示高度加上填充 (除非设置了浮动 floats,见下文)。 如果没有指定宽度,就会出现一个非浮动 non-floated盒并以适应父盒的宽度显示,减去填充(下文有更多介绍)。 关于块级元素,需要切记以下几个要点: 如果某个盒子(box)的宽度设定为“100%”,它就不能有任何外边距、填充或边框,否则它就会溢出父盒子。 垂直相邻外边距可能会导致复杂的崩溃问题而最终造成布局出问题。 相对位置的元素和绝对位置的元素是有区别的,这个涉及的东西比较多,这篇文章就不介绍。 在Firefox中使用Firebug显示的盒模型( box model ) 块级元素Block和内联元素 Inline的区别 经验丰富的开发人员可能觉得这没什么好说的,不过,我觉得这个一个非常重要的问题,要是能够做到透彻理解,你就会说“啊,原来如此” 很多头疼的问题就会迎刃而解,以后对创建跨浏览器布局信心也会大大增强。 下面的图片说明了块级元素block和内联元素inlin的区别: Block元素默认情况下会自然横向扩展来填充父容器,因此没有必要设置宽度为“100%”。 Block元素默认情况下会从父盒的最左边开始低于以往任何块元素(除非使用漂浮或定位元素,见下文)。 Inline元素无视宽度和高度的设置。 Inline元素会与文本一起流动,并受排版属性如空格、字体大小和字母间距的影响。 Inline元素可以使用垂直对齐属性对齐,而block 元素不能。 Inline元素的下方会自然留出一些空间以容纳破行掉下的文本元素。 inline元素如果设置为漂浮可以变成块元素。 浮动和清除元素 为了让队列布局相对易于维护,最佳的办法就是使用漂浮(floats) 。因此,想要实现跨浏览器体验的一致性,对float是如何运作的是否有扎实的理解就成为了另一个非常重要的因素。 一个浮动元素可以向左或是向右浮动, 使用浮动的结果是,浮动元素会依据指定的方向漂流直到它的边缘碰到其父容器或是另一个浮动元素的边缘。所有非浮动,出现在浮动元素下方的内联内容将会朝浮动的相反方向沿着它的边缘流动。 关于浮动和清除元素,需要切记以下几个要点: 浮动元素时从其他块级元素、非浮动元素上移动出来的,换句话说,如果你将一个盒元素向左侧浮动,那么非浮动的尾随段落(块级别元素)将会出现在浮动元素的后面,段内的任何文本 (内联级别元素)将会围绕浮动元素流动。 想要让内容围绕着一个浮动元素流动,需要确保它是属于内联元素或与浮动元素的方向一致。 如果浮动元素没有指定宽度,将会压缩至内容的宽度,因此,通常最好还是给浮动元素设定一个宽度。 如果块元素包含了浮动的子元素,就会造成块元素“崩溃” , […]

By

MACA Strong Hold Hair Styling Spray For Hair Salon

December 5, 2024 | News | No Comments

  Product Features: Do you often do one-off styling? Do you have the trouble that the hair turns back to its original shape after a while? Don't worry, MACA Strong Hold Hair Styling Spray can keep styling your styling until the next time you wash your hair. MACA Strong Hold Hair Styling Spray has a […]

By

MACA Power Protein Cream

December 5, 2024 | News | No Comments

  Product Features: Product name:MACA power protein cream This protein cream contains no silicones, parabens, phthalates, mineral oil or petroleum. For all hair types including colored or keratin treated, permed, natural, and curly hair. Safe and effective for both men and women.Moisturizing conditioning treatment best for total hair repair. Proven to reduce hair breakage by […]

By

170M3165

December 5, 2024 | News | No Comments

The 170M3165,from Bussmann / Eaton,is Specialty Fuses.what we offer have competitive price in the global market,which are in original and new parts.If you would like to know more about the products or apply a lower price, please contact us through the “online chat” or send a quote to us! Specifications Package Payment Shipping Contact US […]

By

Keratin Hair Treatment Mask For Professional Salon

December 5, 2024 | News | No Comments

  Product Features: The benefits of keratin for hair: It can mainly supplement the nutrition in the hair, make the hair softer, can effectively improve the dryness of the hair, and has a better effect on the improvement of hair loss. Keratin mainly contains more powerful protein components, and more amino acids. Yes, it can […]

By

>Yin Yang Pants

December 5, 2024 | News | No Comments

This beautiful Chinese Yin Yang Pants decorated with calligraphy motifs is subtly embroidered with Ying and Yang motifs on the cords. The loose fit of the sarouel type is designed according to the pants of the great masters of martial arts, which inspire the aesthetics of these pants to the elegance reminiscent of the great […]

By

>White Hanfu Dress

December 5, 2024 | News | No Comments

Discover our elegant White Hanfu Dress for Chinese fashion lovers. This White Hanfu Dress is of unparalleled elegance and delicacy. Its draped bottom and its touches of bright red, a lucky color in China, make it an absolutely remarkable Hanfu. Please note that in China, white is synonymous with mourning, so it can be ideal […]

By

>White Chinese Dress

December 5, 2024 | News | No Comments

A very sober and discreet White Chinese Dress, perfect for everyday life and which will know how to emphasize you with its fitted cut and its traditional chinese flowers patterns. Features of the White Chinese Dress  • White Chinese Dress • Unique design: Traditional Chinese style• Discreet closure• Materials: 70% Satin and 30% Polyester• Hand wash cold for ideal preservation• FREE STANDARD […]

By

170M3140

December 5, 2024 | News | No Comments

The 170M3140,from Bussmann / Eaton,is Specialty Fuses.what we offer have competitive price in the global market,which are in original and new parts.If you would like to know more about the products or apply a lower price, please contact us through the “online chat” or send a quote to us! Specifications Package Payment Shipping Contact US […]

By