微信小程序开发

小程序开发者工具更新后所有程序都报wxss编译错误【已解决】

2017-11-29  本文已影响0人  LING_00c9

一直没有更新,今天更新开发工具后,所有的项目都出现编译错误,好蛋疼啊!求解!!!

网友回复:

r***:

你好,请提供一下wxss代码

軍***:

/**app.wxss**/

.container {

height: 100%;

display: flex;

flex-direction: column;

align-items: center;

justify-content: space-between;

padding: 200rpx 0;

box-sizing: border-box;

}

button[type="primary"] {

color:#FFFFFF;

background-color:#1AAD19;

}

button {

margin-top:30rpx;

margin-bottom:30rpx;

}

button {

margin-top:20rpx;

margin-bottom:20rpx;

}

button {

position:relative;

display:block;

margin-left:auto;

margin-right:auto;

padding-left:14px;

padding-right:14px;

box-sizing:border-box;

font-size:18px;

text-align:center;

text-decoration:none;

line-height:2.55555556;

border-radius:5px;

-webkit-tap-highlight-color:transparent;

overflow:hidden;

color:#000000;

background-color:#F8F8F8;

}

button::after {

content:" ";

width:200%;

height:200%;

position:absolute;

top:0;

left:0;

border:1px solid rgba(0, 0, 0, 0.2);

-webkit-transform:scale(0.5);

transform:scale(0.5);

-webkit-transform-origin:0 0;

transform-origin:0 0;

box-sizing:border-box;

border-radius:10px;

}

这个是app.js 的  具体都不知道是哪个wxss报错

軍***:

这个项目都已经上线了  今天跟新开发工具后就打不开了  但是真机调试还是正常的  基本库版本为 1.5.3

K***:

在工具上面随便找一个报wxss不存在的文件,右键-重命名-随便加个字符比如1,回车

然后再次右键-重命名-把刚加的字符去掉,回车,编译

o***:

你好,请尝试在控制台输入openVendor() ,清除里面的wcsc wcsc.exe 然后重启工具

軍***:

可以的 清除就好了  楼上正解!  感谢!!!

上一篇 下一篇

猜你喜欢

热点阅读