首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

CSS基础——css 属性

我们知道 css 我们知道 css 作用是美化 HTML 网页和控制页面布局的,接下来我们来学习一下经常使用一些样式属性。1....布局常用样式属性width 设置元素(标签)的宽度,如:width:100px;height 设置元素(标签)的高度,如:height:200px;background 设置元素背景色或者背景图片,如:...文本常用样式属性color 设置文字的颜色,如: color:red;font-size 设置文字的大小,如:font-size:12px;font-family 设置文字的字体,如:font-family...小结设置不同的样式属性会呈现不同网页的显示效果样式属性的表现形式是: 属性名:属性值;作用是美化 HTML 网页和控制页面布局的,接下来我们来学习一下经常使用一些样式属性。1....小结设置不同的样式属性会呈现不同网页的显示效果样式属性的表现形式是: 属性名:属性值;

1.5K20

右侧悬浮菜单悬浮css+html css自动判断PC显示手机端隐藏 Alextao html

感觉还不错,只是部署到博客不太搭配(颜色太鲜艳了),用css加了个设备判断,电脑端显示、手机端隐藏。1221px 界点 预览: css /*footer*/ .elevator_item .hd-time-limited { display: block; position...--右侧悬浮菜单 結束--> 不锈钢料槽 html actionscriptapacheconfapplescriptaspnetbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyamletbashbasicbatchcclikecoffeescriptcppcsharpcssddartdiffdockerdockerfileerlangfortranfsharpgfmgitglslgographqlhamlhaskellhaxehtmlhttpiconinijjavajavascriptjsjsonjsonpjsxlatexlessluamakefilemarkdownmarkupmathmlmatlabmdmelnginxobjectivecparserpascalperlphppowershellpropertiespythonqrrubyrustsassschemescsssmartysqlstylussvgswifttcltstypescriptvbnetvimwikixmlyaml

3.5K00

CSS外观属性

text-align:水平对齐方式 text-align属性用于设置文本内容的水平对齐,相当于html中的align对齐属性。...其可用属性值如下: left:左对齐(默认值) right:右对齐 center:居中对齐 text-indent:首行缩进 text-indent属性用于设置首行文本的缩进,其属性值可为不同单位的数值...其属性值可为不同单位的数值,允许使用负值,默认为normal。 word-spacing:单词间距 word-spacing属性用于定义英文单词之间的间距,对中文字符无效。...颜色半透明(css3) 文字颜色到了CSS3我们可以采取半透明的格式了语法格式如下:    color: rgba(r,g,b,a)  a 是alpha 透明的意思 取值范围 0~1之间    color...: rgba(0,0,0,0.3)   文字阴影(CSS3)  Shadow 影子 text-shadow:水平位置 垂直位置 模糊距离 阴影颜色; ?

1.1K20

css属性详解

颜色是通过CSS最经常的指定:   十六进制值 - 如: #FF0000     一个RGB值 - 如: RGB(255,0,0)   颜色的名称 - 如:  red   还有rgba(255,0,0,0.3...六、css盒子模型 margin:            用于控制元素与元素之间的距离;margin的最基本用途就是控制元素周围空间的间隔,从视觉角度上达到相互隔开的目的。...三种取值 left:向左浮动 right:向右浮动 none:默认值,不浮动 clear clear属性规定元素的哪一侧不允许其他浮动元素。 值 描述 left 在左侧不允许浮动元素。...inherit 规定应该从父元素继承 clear 属性的值。 注意:clear属性只会对自身起作用,而不会影响其他元素。...#i2 { z-index: 999; } 十三、透明属性 用rgba的方法来设置   这种方式只是改变背景颜色的透明度 .touming { width: 300px

2K101

CSS——属性列表

1floatfloat 可使一个元素脱离文档流,然后被放置在它所在的容器的左侧或右侧,另外其他的文本或行内元素围绕该元素放置。1left设置定位元素左外边距边界与其包含块左边界之间的偏移。...3align-items定义了多根轴线的对齐方式,如果项目只有一根轴线,该属性不起作用3align-self设允许单个项目有与其他项目不一样的对齐方式,可覆盖align-items属性。...-font-language-overridefont-language-override 字体-语言-重写 CSS 属性参数控制特定语言的字体中的字形。...1font-variant-alternatesfont-variant-alternates 字体变形候补 CSS 属性参数控制替代符号的用法。...3transition-propertytransition-property 规定应用过渡效果的 CSS 属性的名称。(当规定的 CSS 属性改变时,过渡效果将开始)。

2.5K10
领券