css畫皮卡丘

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="stylesheet.css">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>pikaqiu</title>
</head>
<body>   
    <div id="container">
        <div id="nose"></div>
        <div class="eye eye-left"></div>
        <div class="eye eye-right"></div>
        <div class="upperLip"></div>
        <div class="lowerLip-wrapper">
        <div class="lowerLip"></div>
      </div>
    <div class="face face-left"></div>
    <div class="face face-right"></div>
    </div>
</body>
</html>

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before{
    box-sizing: border-box;
}

*::after{
    box-sizing: border-box;
}

body{
    background: #ffe000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;    
}

#container{
    height: 300px;
    width: 460px;
    position: relative;
}

#nose{
    border: 10px solid transparent;  
    position: absolute; 
    left:50%;
    top:95px; 
    transform: translateX(-50%); 
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid black;
    border-radius: 50%;
}

.eye{
    position:absolute;
    width: 60px;
    height: 60px;
    background-color: #2e2e2e;
    border:2px solid black;
    border-radius: 30px;
    top:65px;
}

.eye-left{
    right: 50%;
    margin-right: 90px;
}

.eye-right{
    left: 50%;
    margin-left: 90px;
}

.eye::before{
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 15px;
    left: 8px;
    position: absolute;
    border: 2px solid black;
}

.upperLip{
    position: absolute;
    top:120px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.upperLip::before{
    content: '';
    display: block;
    width: 80px;
    height: 26px;
    border: 3px solid black;
    border-top:none;
    border-right: none;
    border-bottom-left-radius: 80px 40px;
    transform: rotateZ(-23deg);
    background: #ffe000;
}

.upperLip::after{
    content: '';
    display: block;
    width: 80px;
    height: 26px;
    border: 3px solid black;
    border-top: none;
    border-left: none;
    border-bottom-right-radius: 80px 40px;
    transform: rotateZ(23deg);
    background: #ffe000;
}

.lowerLip-wrapper{
    position: absolute;
    width: 100%;
    top: 130px;
    height:160px;
    overflow: hidden;
}

.lowerLip{
    position: absolute;
    border: 3px solid black;
    bottom: 0px;
    height: 1300px;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    border-top: none;
    border-bottom-left-radius: 100px 650px;
    border-bottom-right-radius: 100px 650px;
    border-top-left-radius: 100px 100px;
    border-top-right-radius: 100px 100px;
    background: #ff444f;
    box-shadow: inset 0 1145px 0 20px #9f000a;
}

.face{
    position: absolute;
    border:3px solid black;
    background: red;
    top:180px;
    width: 80px;
    height: 80px;
    border-radius: 40px;
}

.face-left{
    right: 50%;
    margin-right: 130px;
}

.face-right{
    left: 50%;
    margin-left: 130px;
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末坚俗,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖瑰妄,帶你破解...
    沈念sama閱讀 221,695評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異蠢涝,居然都是意外死亡派阱,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,569評論 3 399
  • 文/潘曉璐 我一進店門揩环,熙熙樓的掌柜王于貴愁眉苦臉地迎上來搔弄,“玉大人,你說我怎么就攤上這事丰滑」擞蹋” “怎么了倒庵?”我有些...
    開封第一講書人閱讀 168,130評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長炫刷。 經(jīng)常有香客問我擎宝,道長,這世上最難降的妖魔是什么浑玛? 我笑而不...
    開封第一講書人閱讀 59,648評論 1 297
  • 正文 為了忘掉前任绍申,我火速辦了婚禮,結(jié)果婚禮上顾彰,老公的妹妹穿的比我還像新娘极阅。我一直安慰自己,他們只是感情好涨享,可當我...
    茶點故事閱讀 68,655評論 6 397
  • 文/花漫 我一把揭開白布筋搏。 她就那樣靜靜地躺著,像睡著了一般厕隧。 火紅的嫁衣襯著肌膚如雪奔脐。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,268評論 1 309
  • 那天吁讨,我揣著相機與錄音髓迎,去河邊找鬼。 笑死建丧,一個胖子當著我的面吹牛竖般,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播茶鹃,決...
    沈念sama閱讀 40,835評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼涣雕,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了闭翩?” 一聲冷哼從身側(cè)響起挣郭,我...
    開封第一講書人閱讀 39,740評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎疗韵,沒想到半個月后兑障,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,286評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡蕉汪,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,375評論 3 340
  • 正文 我和宋清朗相戀三年流译,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片者疤。...
    茶點故事閱讀 40,505評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡福澡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出驹马,到底是詐尸還是另有隱情革砸,我是刑警寧澤除秀,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布,位于F島的核電站算利,受9級特大地震影響册踩,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜效拭,卻給世界環(huán)境...
    茶點故事閱讀 41,873評論 3 333
  • 文/蒙蒙 一暂吉、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧缎患,春花似錦借笙、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,357評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽盗痒。三九已至蚂蕴,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間俯邓,已是汗流浹背骡楼。 一陣腳步聲響...
    開封第一講書人閱讀 33,466評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留稽鞭,地道東北人鸟整。 一個月前我還...
    沈念sama閱讀 48,921評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像朦蕴,于是被迫代替她去往敵國和親篮条。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 45,515評論 2 359

推薦閱讀更多精彩內(nèi)容