アニメーションが再生されていないときに要素のCSSスタイルを設定します
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
position: relative;
background: red;
animation-name: myanim;
animation-duration: 2s;
animation-fill-mode: backwards;
}
@keyframes myanim {
from {left: 0px; background-color: green;}
to {left: 200px; background-color: blue;}
}
</style>
</head>
<body>
<div></div>
</body>
</html> -
CSSを使用して下の境界線のスタイルを設定します
下の境界線のスタイルを設定するには、border-bottom-styleプロパティを使用します。設定できる境界線の値は、点線、二重、破線、実線などです。 例 次のコードを実行して、下の境界線のスタイルを設定できます <!DOCTYPE html> <html> <head> <style> p.dotted {border-bottom-style: dotted;}
-
CSSでテキスト装飾のスタイルを設定します
テキスト装飾のスタイルを設定するには、text-decoration-styleプロパティを使用します。次の値を使用できます- text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit; 例 <!DOCTYPE html> <html> <head> <style> span { text-decoration: line-through; text-decoration-color: blue; } .demo