小编Suj*_*nka的帖子

查找正则表达式Word的最后一次出现

如何找到带有单词边界的单词的最后一次出现?我/\btotal\b/为这个词创建了一个正则表达式.我如何使用search()查找此表达式的最后一次出现?在此先感谢您的帮助!

javascript regex

6
推荐指数
2
解决办法
1万
查看次数

中心谷歌登录按钮

我知道这听起来非常简单,但它可能是,但我一直试图使用margin:auto,text-align:center和其他方法使按钮居中,但没有一个有效.我知道你可以自定义按钮,但我对这个按钮很好,只想把它放在中心位置. JSFiddle代码

   <html lang="en">

<head>
  <meta name="google-signin-scope" content="profile email">
  <meta name="google-signin-client_id" content="*******************.apps.googleusercontent.com">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  <script src="https://apis.google.com/js/platform.js" async defer></script>
  <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:100,100i,400">
  <style>
    body {
      background-color: #37474f;
    }
    h1{
      color: white;
      font-family: "Roboto", sans-serif;
      font-weight: 500;

    }
    h3{
      color: white;
      font-family: "Roboto", sans-serif;
      font-weight: 100;

    }
    .center{
      margin-top: 10%;
      text-align:center;
    }
  </style>
</head>

<body>
<div class='center'>
  <img src="https://www.nssc.org/images/design/register-icon.png" alt="Logo" style="max-width:100px; max-height:100px;">
  <h1>Email Database</h1>
  <h3>Lorem Ipsum Dolor.</h3>
  <br><br><br>
  <div class="g-signin2" data-onsuccess="onSignIn" data-theme="light" data-width="300" data-height="50" data-longtitle="true"></div>
  <!--<a href="#" onclick="signOut();">Sign out</a>-->
  <div>
  <script> …
Run Code Online (Sandbox Code Playgroud)

html css image centering google-signin

3
推荐指数
2
解决办法
8177
查看次数

标签 统计

centering ×1

css ×1

google-signin ×1

html ×1

image ×1

javascript ×1

regex ×1