Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 反应块上的小点_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 反应块上的小点

Html 反应块上的小点,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,正如你们在链接上看到的,在左边有一个带小点的en块 我想知道是否不仅仅有一个类可以用左边的一个小点做一个块。不使用css?就像class=“img circle”一样,例如,它使它变圆 HTML <div class="triangle">here we talk!!</div> 解释: 在div中,您在css中创建正方形,我定义它… 在:在之后,我定义了三角形 如果你想改变背景色,你必须同时改变这两种颜色。。。。也许在街区上做个记号…@edditedit@thatto

正如你们在链接上看到的,在左边有一个带小点的en块 我想知道是否不仅仅有一个类可以用左边的一个小点做一个块。不使用css?就像
class=“img circle”
一样,例如,它使它变圆

HTML

<div class="triangle">here we talk!!</div>
解释:
div
中,您在css中创建正方形,我定义它…
:在
之后,我定义了三角形

如果你想改变背景色,你必须同时改变这两种颜色。。。。也许在街区上做个记号…@edditedit@thattommm显示我的答案如果你不想改变尺寸。。。尝试在F12中实时更改它,运行起来会更容易…@thattommm--它有用吗?很乐意帮忙;)也许你可以看看我的另一个问题?如果你愿意
.triangle{
position: relative;
width: 100px;
height: 100px;
color: white;
background-color: rgba(0,0,0,.8);
}


.triangle:after{
position: absolute;
left:-10px;
top: 18px;
content: '';
width: 0;
height: 0;
border-right: solid 10px rgba(0,0,0,.8);
border-bottom: solid 10px transparent;
border-top: solid 10px transparent;
}