小编McL*_*ren的帖子

Cant make g in the center of the svg

Hello Stackoverflow community. I need help, I'm trying to make g tag in center of svg tag, but I can't. I've tried making margin 0 auto but still its the same. How can I fix this, here is my jsfiddle with full code: https://jsfiddle.net/mky4qqvd/

<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600px" height="100px" viewBox="0 0 600 100">
                <style type="text/css">

                        text {
                            filter: url(#filter);
                            fill: black;
                            font-family: "Cinzel",serif;
                            font-size: 100px;
                            -webkit-font-smoothing: antialiased;
                            -moz-osx-font-smoothing: grayscale;
                        }

                </style>
                <g style="
    /* width: 100%; */
    width: …
Run Code Online (Sandbox Code Playgroud)

html css svg

7
推荐指数
1
解决办法
4650
查看次数

使图像适合全屏而无需滚动条

我需要全屏制作标题图片.我试过这个:

<div class="wrapper">
   <img src="images/image1.jpg" class="img-responsive" alt="Responsive image">
</div>
Run Code Online (Sandbox Code Playgroud)

但这是图片:

在此输入图像描述

不知怎的,窗口仍然需要向下滚动,你可以看到,我如何解决这个问题,以适应屏幕?

html css twitter-bootstrap-3

4
推荐指数
1
解决办法
7666
查看次数

从句子中制作数组

我从数据库中得到了这句话

0| Future plan 1| Low 2| Normal 3| High 4| Highest
Run Code Online (Sandbox Code Playgroud)

而且我需要让它看起来类似于:

[0] => Future plan
[1] => Low
[2] => Normal
[3] => High
[4] => Highest
Run Code Online (Sandbox Code Playgroud)

我找不到任何线程,类似于此.请帮忙.

php

1
推荐指数
1
解决办法
95
查看次数

帖子摘录不起作用

你好stackoverflow人,我需要帮助.我正在使用wordpress,不知怎的,我不能使用这个功能:

$post_id = 12;
    echo get_post($post_id)->post_excerpt;
Run Code Online (Sandbox Code Playgroud)

不知何故它什么都不打印.这是完整的div.你能帮我解决这个问题吗?

                <div id="block1">
                    <div class="inblock1">
                        <h2>About boots</h2>
                        <p><?php $post_id = 12;
echo get_post($post_id)->post_excerpt; ?> </p>
                        <a href="/about-boots/" class="rodykle">apac</a>
                    </div>
                </div>
Run Code Online (Sandbox Code Playgroud)

php wordpress

1
推荐指数
1
解决办法
2122
查看次数

标签 统计

css ×2

html ×2

php ×2

svg ×1

twitter-bootstrap-3 ×1

wordpress ×1