1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > css 文字不规则排版 CSS3文字排版

css 文字不规则排版 CSS3文字排版

时间:2019-08-27 01:10:36

相关推荐

css 文字不规则排版 CSS3文字排版

文字两边对齐

Definition. Suibian Means "whatever".

Origins from Mandarin, chinese.

Will you join me as you said?

No, i changed my mind! suibian!

#suibien #shuibian

#div1{

width:200px;

height:auto;

text-align:justify;

hyphens: auto;

}

两边对齐

dd最后换行

Name:Lea Verou Lea VerouEmail:lea@verou.meLocation:Earth

#div2 dt, dd { display:inline; }

#div2 dd { margin: 0; font-weight:bold; }

#div2 dt:not(:first-child)::before { content:"\A"; white-space:pre; }

#div2 dd+dd:before { content:","; font-weight:normal; margin-left:-.25em; }

最后换行

文字斑马线(1)

op Definition. Suibian. Means "whatever".

Origins from Mandarin, chinese.

Will you join me as you said? No,

i changed my mind! suibian!

#suibien #shuibian

#div3{

width:200px;

padding:0 .5em;

line-height:1.5;

background:beige;

background-image:linear-gradient(rgba(0,0,0,.1) 50%,transparent 0);

background-size:auto 3.1em;

}

斑马线

文字斑马线(2)

op Definition. Suibian. Means "whatever".

Origins from Mandarin, chinese.

Will you join me as you said? No, i changed my mind! suibian!

#suibien #shuibian

#div4{

width:200px;

padding:.5em;

line-height:1.5;

background:beige;

background-size:auto 3em;

background-origin:content-box;

background-image: linear-gradient(rgba(0,0,0,.2) 50%,

transparent 0);

}

斑马线

pre: tab -> 空两个字节

<div>

<div></div>

</div> <div>

<div></div>

</div> <script>

var aa = function(){

}

</script>

#div5{

tab-size:2;

width:200px;

padding:0 .5em;

line-height:1.55;

background:beige;

background-size:auto 3.1em;

background-origin:content-box;

background-image: linear-gradient(rgba(0,0,0,.2) 50%,

transparent 0);

}

格式化代码

描边

Definition.

#div17{

width: 400px;

font: 500%/1 Rockwell,serif;

background: deeppink;

color: white;

text-shadow:

1px 1px black,-1px -1px black,

1px -1px black,-1px 1px black;

}

描边

下划线3

CSS

#div18{

width:400px;

font:500%/1 Rockwell,serif;

background:deeppink;

color:white;

}

#div18 text {

fill: currentColor;

}

#div18 svg {

overflow:visible

}

#div18 use {

stroke:black;

stroke-width:6;

stroke-linejoin:round;

}

下划线3

文字环绕

circular reasoning works because

.circular {

width: 20em;

height:20em;

}

.circular svg {

display:block;

overflow:visible;

}

.circular path{

fill:none;

}

文字环绕

.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。
相关阅读
css文字与排版

css文字与排版

2023-08-15

CSS文字排版

CSS文字排版

2020-10-28

【CSS】【13】文字的排版

【CSS】【13】文字的排版

2023-10-02

CSS文字和段落排版

CSS文字和段落排版

2022-03-28