最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定

十字效果怎么通過:before和:after偽元素做出來?

大神,十字效果怎么通過:before和:after偽元素做出來?

正在回答

4 回答

li?a{

????????display:?block;

????????width:?100px;

????????height:?80px;

????????border:?1px?solid;

????????box-sizing:?border-box;

????????position:?relative;

????}

????a:before{

????????content:?"";

????????width:?60px;

????????height:?60px;

????????border-top:?10px?solid;

????????position:?absolute;

????????top:?35px;

????????left:?20px;

????}

????a:after{

????????content:?"";

????????width:?60px;

????????height:?60px;

????????border-left:?10px?solid;

????????position:?absolute;

????????top:?10px;

????????left:?45px;

????}


0 回復(fù) 有任何疑惑可以回復(fù)我~

<a href="javascript:alert('xxx');" class="add"></a>

<style>

.add {

width: 60px;

height: 60px;

border: 1px;

border-style: solid;

color: black;

display: inline-block;

left:50px;

top:120px;

}

.add:hover{

color: blue;

}

.add:after {

content: "";

height: 40px;

border-width: 0 9px 0 0;

border-style: solid;

position: relative;

display: inline-block;

top: 9px;

left: -15px;

}

.add:before {

content: "";

width: 40px;

border-width: 9px 0 0 0;

border-style: solid;

position: relative;

display: inline-block;

top: -6px;

left: 10px;

}

</style>


0 回復(fù) 有任何疑惑可以回復(fù)我~

<style>

.box{color:pink;}

.box:hover{color:blue;}

.box{width: 200px;height: 200px;border:1px solid ;text-align:center;line-height:200px;font-size:0;position:relative;-web-kit-transition: color .25s;}

.box:before{content:"";width: 100px;height: 0;border-top:10px solid;display:inline-block;vertical-align:middle;}

.box:after{content:'';height: 100px;width: 0;border-left:10px solid;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;}

</style>

</head>

<body>

<div class="box"></div>

</body>


0 回復(fù) 有任何疑惑可以回復(fù)我~

<a></a>

<style type="text/css">

a{

width: 200px;

height: 200px;

border: 1px solid;

position: relative;

display: block;

}

a:before{

content: "";

position: absolute;

width: 100px;

border-top: 10px solid;

margin: 95px 0 0 45px;

}

a:after{

content: "";

position: absolute;

height: 100px;

border-left: 10px solid;

margin: 45px 0px 0px 90px;

}

a:hover{

color: red;

}

</style>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

十字效果怎么通過:before和:after偽元素做出來?

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號