腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
React
Center
div
、
我正在使用
react
来构建一个对话框组件,我希望能够计算出左侧和顶部来居中固定的对话框位置。我不是在使用css之后,我想使用
react
或javascript来获取这些数据。以下是我当前的组件import { any } from 'prop-types'; children
浏览 28
提问于2019-11-18
得票数 0
1
回答
如何使用onClick转到另一个页面?
import
React
from "
react
"; window.location.replace("signup"); render(){ <
div
> <<em
浏览 3
提问于2020-04-08
得票数 1
回答已采纳
8
回答
如何在ReactJS中使用css居中显示图像
、
、
//在Cur.js文件中import Image from '
react
-image-resizer'; <
div
> img src={cur} alt="cur&quo
浏览 0
提问于2019-05-15
得票数 6
1
回答
无法正确地使用
React
中的条件符来呈现
、
import
React
, { Component } from "
react
";import { connect }from "
react
-redux"; import Standard from ".className="lead text-
center
">Select a plan to view more</
div<
浏览 1
提问于2019-02-27
得票数 0
回答已采纳
2
回答
如何在
React
中为组件添加滚动条?
、
、
我在我的SPA中使用了一个有3列的网格系统。左侧和右侧列表包含占据视口高度的100的组件。中间的列包含一个很长的列表,并且想要在中间的组件上添加一个滚动条。我试着用几个不同的scrollbar组件来wraw中间的组件,但是都不起作用。我总是以主页面滚动结束,当进一步向下滚动时,只留下列表组件,而左侧和右侧组件保留在页面顶部。
浏览 0
提问于2018-06-17
得票数 12
回答已采纳
2
回答
ReactJS-只有最新的文本行出现在网页上。
我有这个类函数 render() { <
center
><p>FACT</p></
center
>, } ex
浏览 0
提问于2018-08-27
得票数 1
回答已采纳
1
回答
如何在
React
中设置同级组件的状态而不进行更新
、
、
它是这样的: import
React
, { useState } from '
react
';import { GoogleMap, withGoogleMap } from "
react
-google-maps"; <GoogleMap defaultZoom={10}
c
浏览 17
提问于2020-04-09
得票数 0
回答已采纳
1
回答
如何在引导中垂直对齐这些行?
、
、
、
import
React
from "
react
"; return ( <
div
className="container central align-items-
center
"> <
div
className="row justify-content
浏览 2
提问于2022-01-05
得票数 0
2
回答
React
路由器v6不呈现任何内容
、
当使用
react
router,应用程序中没有rednerr (空白页)时,我的组件不需要路由(代码中有注释)。我不知道为什么会这样。import
React
from '
react
'; BrowserRouter as Router, Route, } from "
react
-router-dom='w-full flex flex-col content-
ce
浏览 7
提问于2022-05-31
得票数 -1
回答已采纳
2
回答
如何将
React
类组件转换为带钩子的功能组件
、
、
、
export default class App extends
React
.Component { super(props);<
div
className="col text-
center
"> {" "}<Badge className="text-align-
center
" v
浏览 0
提问于2021-01-21
得票数 2
1
回答
在单击reactjs按钮之前,立即显示qr代码。
、
、
、
import
React
from '
react
';import QRCode from "
react
-qr-code"; <
div
className="
浏览 6
提问于2022-03-31
得票数 -1
回答已采纳
1
回答
在Reactjs中使用路由器时无法返回到以前的页面
、
下面是App.js的代码import { Switch, Link/components/Header'; <
div
>import
React
from &
浏览 2
提问于2020-05-26
得票数 0
1
回答
当两个容器位于不同的组件中时,如何堆叠它们?
、
、
在我的
React
应用程序中,我创建了一个任务跟踪器,我有一个表单,用于在一个组件中添加或过滤任务。在另一个组件中,我通过任务映射每个任务的列表。我正在尝试将我的任务列表放在表单容器的顶部。> </
div
>样式 display: flex;} width: 450px; min-heig
浏览 0
提问于2021-03-13
得票数 0
4
回答
在JSX文件中导入css
、
、
在我的文件Graph.js中: import
React
from '
react
';import
Center
from './
Center
/
Center
' return( <<
浏览 65
提问于2019-06-07
得票数 0
5
回答
ReactJS +
React
路由器:如何居中
div
?
、
、
、
、
我目前已经建立了一个ReactJS +
React
路由器项目,在Chrome dev工具的elements下显示: <
div
class="wrapper"> <
div
>
浏览 22
提问于2017-02-09
得票数 23
1
回答
React
/CSS :如何将按钮向左移动,使其与搜索栏的开头匹配
、
placeholder: "Search", onChange: this.onChange <
div
> <
div
display: "flex",
浏览 18
提问于2021-02-13
得票数 0
2
回答
React
-routing -> routing即使在"exact“字段之后也会呈现在同一页面上
、
、
import
React
from '
react
'; return ( <h2 id="projectName" class="text-
center
="tagline text-
center
"></h1>
浏览 0
提问于2020-03-05
得票数 0
1
回答
在Material UI字体中,将内容居中对齐,作为标题的变体
、
、
、
、
如何使用align="
center
"属性将内容居中,并使用variant作为标题,因为这似乎不起作用。render() { <
div
> <Typography align="
center
">Centered text</Typography><Typography color="textSecondary" variant="caption" align=&
浏览 19
提问于2020-07-29
得票数 1
2
回答
单击数组中的文本区域默认值
、
我的代码:import ".( <
div
className="backdrop" /> {
浏览 4
提问于2022-10-18
得票数 0
1
回答
我试着用tailwindcss创建一个光盘列表,但是它没有出现
import
React
from "
react
"; const App = () => { <> <
div
className="list"> <ul className="list-
浏览 56
提问于2021-09-10
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
div和span
想创建应用程序,只用React Hooks就够了
Learn a Word:call center
div&span 标签
div&span标签
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券