2010-12-27 18 views

Respuesta

15

sí lo es, hay hay más de una posibilidad:

Y Podría usar un elemento hr u otro elemento y rotarlo. He aquí una demostración:

Y sí funciona en IE a :)

http://jsfiddle.net/LqFAX/

-moz-transform: rotate(7.5deg); 
    -o-transform: rotate(7.5deg); 
-webkit-transform: rotate(7.5deg); 
    -ms-transform: rotate(7.5deg); 
     transform: rotate(7.5deg); 
      filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', 
        M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104); 
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.9914448613738104, M12=-0.13052619222005157, M21=0.13052619222005157, M22=0.9914448613738104,sizingMethod='auto expand')"; 

      zoom: 1; 
2

Puede:

  1. crear elemento html (div)
  2. conjunto color de fondo a transparente
  3. conjunto de colores a una frontera
  4. gire
+0

@arjan ¿te refieres al selector webkit rotate CSS? – alexchenco

+0

rotar desde transformaciones CSS 2D (transformar: rotar (45deg);) – Arjan

+0

@janoChen sí, -webkit-transform: rotar (45deg); – Gal

3

A continuación se muestra completa, sólo tiene que jugar con ángel y la base de la traducción de sus dimensiones.

<div style="background-color: #BCBCBC; width: 100px; height: 50px; padding: 0; margin: 0"> 
    <div style="width: 112px; height: 47px; border-bottom: 1px solid black; -webkit-transform: translateY(-20px) translateX(5px) rotate(27deg); "></div> 
</div> 
+2

"jugar con un ángel" <3 – entio

Cuestiones relacionadas