문제

I refer to the tutorial of CSS3-Tricks Ribbon tutorial.

I'd like to adjust the th element inside a table with CSS3 so that it looks like the ribbon in the tutorial.

I've set up a JSFiddle to test it, but unfortunately I can't do it. Can you help me?

도움이 되었습니까?

해결책

Try giving display: block to .ribbon, and take off the background from the table.
Here's example 1.

Or you can try to add to the table: position:relative and z-index:-2.
Here's example 2.

Update 1
And here is with 100% width:example 3.

Update 2
example 4
example 5

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top