Thứ Tư, 8 tháng 5, 2013

CSS transform : skewY(10deg);

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:skewY(10deg);
}

CSS transform : skewX(10deg);

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:skewX(10deg);
}

Thứ Ba, 7 tháng 5, 2013

CSS transform : skew(x-angle,y-angle)

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:skew(10deg,10deg);
}

CSS transform : rotateZ(angle)

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:rotateZ(10deg);
}

CSS transform : rotateY(angle)

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:rotateY(10deg);
}

CSS transform : rotateX(angle)

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:rotateX(10deg);
}

CSS transform : rotate(angle)

transform:
bendoi.vn
#myDIV
{
background-color:lightblue;
transform:rotate(10deg);
}

CSS transform : scaleY(y)

transform:
myDIV
#myDIV
{
background-color:#E8E8FF;
transform:scaleY(1.1);
}

CSS transform : scaleX(x)

transform:
myDIV
#myDIV
{
background-color:lightblue;
transform:scaleX(1.1);
}

CSS transform : scale(x,y)

transform:
myDIV
#myDIV
{
background-color:lightblue;
transform:scale(1.1);
}

CSS transform : translateY(y)

transform:
myDIV
#myDIV
{
background-color:lightblue;
transform:translateY(10px);
}

CSS transform : translateX(x)

transform:
myDIV
#myDIV
{
background-color:lightblue;
transform:translateX(10px);
}

CSS transform : translate(x,y)

transform:
myDIV
#myDIV
{
background-color:lightblue;
transform:translate(10px);
}

CSS transform : matrix(1,2,3,4,5,6)

transform:
bendoi.vn
#myDIV
{
background-color:#56AF0D;
transform:matrix(0.866,0.5,-0.5,0.866,0,0);

}

CSS transform : rotate(10deg)

transform:
bendoi.vn
#myDIV
{
background-color:lightblue;
transform:rotate(10deg);
}

CSS resize

resize 3

Người dùng thay đổi kích thước đối tượng

Thuộc tính giá trị Ví dụ Mô tả
resize both resize: both; Người dùng có thể thay đổi cả chiều rộng và chiều cao của thành phần.
none resize: none; Người dùng không thể thay đổi thành phần theo chiều ngang.
horizontal resize: horizontal; Người dùng có thể thay đổi thành phần theo chiều thẳng đứng.
vertical resize: vertical; Người dùng có thể thay đổi chiều rộng của thành phần.
resize:
Di chuột vào góc dưới bên phải để kéo ...
#myDIV
{
resize:both;
overflow:auto;
}

Sự tương thích ( Cập nhật / Báo lỗi )

Firefox Opera Google Chrome Safari IOS Android Window phone
x * x * *                  

CSS outline-offset

outline-offset 3

Khoảng cách vùng đệm và cũng là thông số kích thước phần đối tượng vượt tràn ra ngoài

Thuộc tính giá trị Ví dụ Mô tả
outline-offset length outline-offset: length;  
inherit outline-offset: inherit;  

Xem ví dụ

<style>
#ttt
{
margin:auto;
padding:10px;
width:350px;
height:100px;
border: 2px solid #D4EDAC;
outline:2px solid #A4CC66;
outline-offset:15px;
}
</style>

<div id="ttt"> ... </div>

Sự tương thích ( Cập nhật / Báo lỗi )

Firefox Opera Google Chrome Safari IOS Android Window phone
x * * * *                  

CSS nav-up

nav-up 3

Xác định nơi để điều hướng khi sử dụng phím điều hướng mũi tên

Thuộc tính giá trị Ví dụ Mô tả
nav-up auto nav-up: auto;  
id nav-up: id;  
target-name nav-up: thao;  
inherit nav-up: inherit;  

Xem ví dụ

<style>
button
{
position:absolute;
}

button#b1
{
top:20%;left:25%;
nav-index:1;
nav-right:#b2; nav-left:#b4;
nav-down:#b2; nav-up:#b4;
}

button#b2
{
top:40%;left:50%;
nav-index:2;
nav-right:#b3; nav-left:#b1;
nav-down:#b3; nav-up:#b1;
}

button#b3
{
top:70%;left:25%;
nav-index:3;
nav-right:#b4; nav-left:#b2;
nav-down:#b4; nav-up:#b2;
}

button#b4
{
top:40%;left:0%;
nav-index:4;
nav-right:#b1; nav-left:#b3;
nav-down:#b1; nav-up:#b3;
}
</style>

<button id="b1">Button 1</button>
<button id="b2">Button 2</button>
<button id="b3">Button 3</button>
<button id="b4">Button 4</button>

Sự tương thích ( Cập nhật / Báo lỗi )

Firefox Opera Google Chrome Safari IOS Android Window phone
x x * x x x x x x x x x x x