Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.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_Reactjs_React Native_React Native Render Html - Fatal编程技术网

反应本机呈现HTMl->;课堂风格不起作用

反应本机呈现HTMl->;课堂风格不起作用,html,reactjs,react-native,react-native-render-html,Html,Reactjs,React Native,React Native Render Html,您好,我正在使用react native render HTML呈现HTML contant var strHTML = '' strHTML = `<html><head></head><body><div id="container"><div id="one"><h3>Sunny</h3><p>Developer</p>&l

您好,我正在使用react native render HTML呈现HTML contant

    var strHTML = ''
strHTML = `<html><head></head><body><div id="container"><div id="one"><h3>Sunny</h3><p>Developer</p><p>Ist Floor, Shubham Complex, Ghatlodiya</p><p>Ahmedabad, Gujarat 380061</p></div><div id="two"><h3>9999999</h3><p>Specification </p></div></div></body></html>`

<ScrollView style={{ flex: 1 }}>
            <HTML html={htmlContent} tagsStyles={tagsStyles} classesStyles={classStyles} imagesMaxWidth={Dimensions.get('window').width} />
        </ScrollView>

    const styles = {
  tagsStyles: { 
      p: {margin: 2},
      h3: {margin: 2, color: 'red'}
  }

};

const classStyles = { 
  "container": { height: 200,  background: 'red'}, 
    "one": {   height: 200,float: 'left' }, 
    "two": {   marginLeft: 30,height: 200 }
};
var strHTML=''
strHTML=`Sunny开发商

Ghatlodiya Shubham综合体Ist层

古吉拉特邦艾哈迈达巴德380061

999999规范

` 常量样式={ 标记样式:{ p:{margin:2}, h3:{边距:2,颜色:'red'} } }; 常量类样式={ “容器”:{高度:200,背景:'红色'}, “一”:{高度:200,浮动:'左'}, “二”:{边缘左侧30,高度200} };

但是类样式(container,one,two)对这一点没有影响

您需要更改html

身份证

阶级


您需要更改html

身份证

阶级