我在fiverr參加考試。在那里我得到了以下問題:
Consider the following code:
body{text-replace: "a" "b" "b" "c"}
如果實作了文本替換樣式,以下字串的輸出是什么?
1. ndy lives behind cbfe
2. cndy lives cehind ccfe
3. andy lives behind cafe
4. andy lives cehind bafe
uj5u.com熱心網友回復:
答案是#2:
“cndy lives cehind ccfe”
確切的 CSS 示例出現在上面鏈接的規范中,示例描述如下(強調我的):
以下兩條規則產生相同的結果。在第一條規則中,所有“a”字符都轉換為“b”。隨后,所有“b”字符都轉換為“c”。在第二條規則中,所有 'a' 和 'b' 字符都直接轉換為 'c'。
body { text-replace: "a" "b" "b" "c" } body { text-replace: "a" "c" "b" "c" }
所以處理順序是:
1. andy lives behind cafe
2. bndy lives behind cbfe
3. cndy lives cehind ccfe
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/454077.html
上一篇:如何在CSS中制作對話氣泡形狀?
