Thuộc tính left khi dùng position fixed trong CSS

Thuộc tính left khi dùng position fixed trong CSS

Thuộc tính left khi dùng position fixed trong CSS

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính left khi dùng position fixed trong CSS</title>
<style>
div{width:100%; height:300px; float:left; background:red; margin-bottom:10px}
span{width:70px; height:30px; background:green; bottom:10px; z-index:1; line-height:30px; text-align:center; color:#fff}
</style>
</head>
<body>

<h1>Thuộc tính left khi dùng position fixed trong CSS</h1>

<p>Thuộc tính left trong position fixed sẽ canh cạnh trái của phần tử HTML so với cạnh trái của trình duyệt:</p>

<div></div>
<div></div>
<div></div>
<span style="left:10px; position:fixed;">left:10px;</span>
<span style="left:50%; position:fixed;">left:50%;</span>

</body>
</html>
Thuộc tính left khi dùng position fixed trong CSS nằm trong bài viết Thuộc tính left trong CSS