我正在仔细阅读关于使用 Twitter 提要的优秀教程(来自 http://140dev.com 的 Adam Green)
我非常仔细地检查了代码,但 CSS 文件中有一行我不明白。也不知道去哪里查找。
.tweet_triangle {
background:url(../images/twitter_triangle.gif) no-repeat scroll 100% 0 transparent;
. . .
}
我知道这个 div/image 是如何工作的,但我只是不明白背景调出的“滚动 100% 0 透明”部分。不知道这意味着什么,不知道去哪里寻找它。是的,我觉得在这里问这个问题很愚蠢。我得相信以前有人来过这里。 "^)
最佳答案
原因是
background 是 CSS 中的快捷方式,可用于一次设置多个背景属性。
background-image: url("../images/twitter_triangle.gif");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: 100% 0;//The first value is the horizontal position and the second value is the vertical.
background-color: transparent;
关于html - 这个CSS线段是什么意思? . . "scroll 100% 0 transparent ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20159488/