このようなバーをどのように作るのですか?
6361 次
2 に答える
4
これが良いスタートです:
<div style="position: fixed; bottom: 0; background-color: #ccc;">Hello</div>
于 2011-02-04T01:23:10.713 に答える
1
これは、コメントにリンクを含む最初の回答を追加した場合の開始例です。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
</head>
<style>
#TransparentDiv{
position:fixed;
bottom:0;
background: #ccc;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
#TransparentDiv:hover{
filter:alpha(opacity=100);
-moz-opacity:1;
-khtml-opacity: 1;
opacity: 1;
}
</style>
<body>
<div id="TransparentDiv">Hello World - Some more text to make this easier to read.</div>
</body>
</html>
于 2011-02-04T02:13:39.363 に答える