Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.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
CSS有时在android webview中不起作用_Android_Css_Android Webview - Fatal编程技术网

CSS有时在android webview中不起作用

CSS有时在android webview中不起作用,android,css,android-webview,Android,Css,Android Webview,我正在写一个打开本地html的网络视图。我正在使用。但它对我来说不够强壮。html中的CSS工作得很好,但“.CSS”文件中的CSS不能很好地工作 例如,.css文件中的属性“height”不能在html中实现。因此,我必须再次在html中设置“height”属性才能使其正常工作。像这样: 我的css文件: 我的html文件: 我想知道是否有一些方法可以解决这个问题,因为我有很多html和CSS文件 .header{ width:100%; height:80px;

我正在写一个打开本地html的网络视图。我正在使用。但它对我来说不够强壮。html中的CSS工作得很好,但“.CSS”文件中的CSS不能很好地工作
例如,.css文件中的属性“height”不能在html中实现。因此,我必须再次在html中设置“height”属性才能使其正常工作。像这样:

我的css文件:
我的html文件:


我想知道是否有一些方法可以解决这个问题,因为我有很多html和CSS文件

.header{
    width:100%;
    height:80px;    
    color:#FFF;
    font-size:20px;
}
.header_title{
    position:fixed;
    *position:absolute; 
    left:0px; 
    top:0px; 
    opacity=1;
    filter:alpha(opacity=100);
}
.header_title_btn{
    width:50%; 
    height:100%; 
    position:relative; 
    filter:alpha(opacity=100); 
    opacity=1; 
    text-align:center;
}
.lineMiddle{
    height:80px; 
    line-height:80px;
}