最新回答 / Lion_ssg
把最后的content-box改成你的名字bordertest,然后就好啦。我的是這樣:.line-tri{ width: 150px; height: 30px; padding: 15px 0; border-top: 30px solid green; border-bottom: 30px solid red; background: orange; background-clip: line-tri;}
2016-08-30
最新回答 / 接力
http://www.w3school.com.cn/cssref/pr_border.asp,如果不設(shè)置其中的某個(gè)值,也不會(huì)出問(wèn)題,比如 border:solid #ff0000; 也是允許的
2016-08-30
最新回答 / Sofronia3427947
img是內(nèi)聯(lián)元素 ,現(xiàn)在div里面設(shè)置text-align:center;可讓圖片水平居中,然后設(shè)置div ?line-height=height;設(shè)置 img vertical-aligin:middle; 可讓水平垂直方向都居中
2016-08-25