SimonZhangITer/DataVisualization

css

gy95 opened this issue · 12 comments

gy95 commented

.item { padding: 0px; margin: 0px; width: 68%; height: 100%; position: absolute transform scale(0.33); text-align: center; transition:all 0.8s; background: rgba(32, 32, 35, 0.5) }
这里absolute后面加个分号,transform后面加个冒号,设置了class=‘item’的div就不显示了,为啥

position: absolute后面少了个分号;?

gy95 commented

position: absolute后面少了个分号;?

我的意思是我上面的代码可以正常运行,但是加个分号和冒号之后就不对了

gy95 commented
<style rel="stylesheet/scss" lang="scss" scoped> 我style头是这样写的

可以格式化一下代码吗,这样看不太出来问题

.item {
    padding: 0px;
    margin: 0px;
    width: 68%;
    height: 100%;
    position: absolute;
    transform: scale(0.33);
    text-align: center;
    transition: all 0.8s;
    background: rgba(32, 32, 35, 0.5)
}
gy95 commented
.item {
    padding: 0px;
    margin: 0px;
    width: 68%;
    height: 100%;
    position: absolute;
    transform: scale(0.33);
    text-align: center;
    transition: all 0.8s;
    background: rgba(32, 32, 35, 0.5)
}

这样的话就出不来了

你是改了我的代码吗,之前都是可以正常运行的

你把我的这段样式复制到你的代码试试

gy95 commented

还是不行 会不会是和我之前的style冲突了

gy95 commented

解决了,就是和我之前的冲突了 css定位的问题

好的