css里 Y轴的居中用什么 X轴的居中用什么

html-css010

css里 Y轴的居中用什么 X轴的居中用什么,第1张

background:.enter bottom no-repeat前面是url路径

全部的位置代码如下:

background-position: left 代表背景图横向(X轴)靠左,纵向(Y轴)居中。(9点钟位置)

background-position: right 代表背景图横向(X轴)靠右,纵向(Y轴)居中。(3点钟位置)

background-position: top 代表背景图横向(X轴)居中,纵向(Y轴)靠上。(12点钟位置)

background-position: bottom 代表背景图横向(X轴)居中,纵向(Y轴)靠下。(6点钟位置)

background-position: center 代表背景图横向(X轴)居中,纵向(Y轴)居中。(绝对居中)

background-position: left top 代表背景图横向(X轴)靠左,纵向(Y轴)靠上。(10点钟位置)

background-position: left bottom 代表背景图横向(X轴)靠左,纵向(Y轴)靠下。(7点钟位置)

background-position: right top 代表背景图横向(X轴)靠右,纵向(Y轴)靠上。(1点钟位置)

background-position: right bottom 代表背景图横向(X轴)靠右,纵向(Y轴)靠下。(5点钟位置)

```css

transform: rotate(90deg)

```

```css

transform: rotate(90deg)

```

用Macromedia Dreamweaver新建一个css样式表,保存在css文件夹下。然后再你的网页中<head></head>区域间加入外部调用cssy样式表。如:<link href="css/style.css" rel="stylesheet" type="text/css" />