我有一个网站,有超过1种语言,我会优化我的sitemap.xml,因此它将包括所有可用的语言 - 我在Google网站站长工具上找到了这个指南,使用XHTML提供所有可用的网址(每种语言一个)和这打破了XML文件,我已经将属性更改为如上所述,但它仍然被破坏 - 不是Chrome,Firefox或IE能够正确读取文件.
这是正常的吗?
以下是Google网站站长工具提供的sitemap.xml示例:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.example.com/english/</loc>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
</url>
<url>
<loc>http://www.example.com/deutsch/</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
</url>
<url>
<loc>http://www.example.com/schweiz-deutsch/</loc>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
</url>
</urlset>
Run Code Online (Sandbox Code Playgroud) React Native 早前推出了SafeAreaView组件,它现在已作为react-navigation软件包的一部分提供,该软件包非常出色,解决了iPhone X上的问题,为Home Indicator(底部栏)留出了空间。
我尚无法确定的一件事是如何更改其样式,以使其“匹配”其余页面布局,无论我做什么,它都保持白色,并为下一个元素添加一些阴影从顶部到它。
以下是一些屏幕截图:
这是我使用的代码:
<Provider store={store}>
<SafeAreaView style={{flex: 1}} forceInset={{'top': 'never'}}>
<View style={{flex: 1}}>
<Navigator/>
<NotificationsContainer/>
</View>
</SafeAreaView>
</Provider>
Run Code Online (Sandbox Code Playgroud)
如何修改此行为和用户界面?
谢谢 :)