小编Hus*_*sna的帖子

垂直线与css中的分支

我试图绘制一条垂直线,该线的左右两侧有多个分支.之后我使用了pseudo类div但是当右侧文本出现箭头定位时出现问题.是否有其他方法可以编写此类.任何人都可以建议我如何编写这个类?

任何帮助赞赏. 在此输入图像描述 寻找灵感来看看这个演示

.at-timeline .timeline--details {
  position: relative;
}
.at-timeline .timeline--single {
    display: flex;
    flex-direction: row;
}
.at-timeline .timeline--details,
.at-timeline .time--date {
    flex-basis: 14%;
    padding: 15px 50px;
}
.text-right { text-align: right;}
.at-timeline .timeline--details:before {
  content: "";
  position: absolute;
  width: 35px;
  height: 2px;
  top: 17%;
  right: 0;
  background: #2783e8;
}
.at-timeline:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 300%;
  top: 15%;
  left: 24%;
  background: #2783e8;
}
Run Code Online (Sandbox Code Playgroud)
<div class="timeline at-timeline" style="padding: 100px;">
	<div class="timeline--single">
		<div class="timeline--details text-right"> …
Run Code Online (Sandbox Code Playgroud)

jquery html5 css3

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

运行时显示错误无效参数的 Flutter 项目:源不能为空

我是扑的新手。我在尝试运行时创建了一个简单的 flutter 项目。我收到这个错误Unexpected failure from adb: Invalid argument(s): The source must not be null

Error launching the application on emulator-5554 这是我的简单颤振应用程序代码:

import `package:flutter/material.dart`;
 void main(){
    runApp(
       new Center(
        child: new Text(
          "hello, world",
           textDirection: TextDirection.ltr,
        )
       )
    );
 }
Run Code Online (Sandbox Code Playgroud)

谁能建议我可能是什么问题?我应该如何修复它?

mobile android flutter

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

如何在Android Studio中创建目录文件夹

我在这里使用Android Studio,我想在lib文件夹中创建一个目录文件夹。我右键单击lib文件夹,但未显示目录选项。谁能建议我如何在文件夹内创建目录文件夹? 在此处输入图片说明

ide android-studio flutter

5
推荐指数
6
解决办法
2388
查看次数

如何使用SVG在悬停时更改图像源?

我已将sm图像分为五个不同的三角形。我正在尝试src在悬停时更改图像的属性值,并在中心方框中显示悬停的图像。

这是我要尝试的操作,但是使用SVG:如何在悬停时更改图像源?

.overlay {
  background-image: url('https://picsum.photos/id/118/1000/800');
  background-repeat: no-repeat;
  background-size: cover;
}

.overlay use {
  opacity: 0;
  transition: all 0.4s linear;
}

.overlay use:hover {
  opacity: 1;
}

.vr-head-tilt {
  position: relative;
}

.big img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.overlay .vr-images1:hover~.big .default {
  opacity: 0;
}

.overlay .vr-images1:hover~.big>img:nth-child(1) {
  z-index: 5;
  opacity: 1;
}

.overlay .vr-images2:hover~.big>img:nth-child(2) {
  z-index: 5;
  opacity: 1;
}

.overlay .vr-images3:hover~.big>img:nth-child(3) {
  z-index: 5;
  opacity: 1;
}

.overlay .vr-images4:hover~.big>img:nth-child(4) {
  z-index: …
Run Code Online (Sandbox Code Playgroud)

html javascript css svg image

5
推荐指数
0
解决办法
143
查看次数

如何在wordpress主题选项中添加颜色选择器

我想在主题选项中添加颜色选择器。我在外观下添加了主题选项,因为我尝试添加颜色选择器。这里的主题选项和我仅在functions.php文件中添加的其他 PHP 代码。我想了解流程。到目前为止我添加了checkboxinput现在我想添加color picker.i 尝试过但没有得到。我是新手,可以WordPress随意解释任何错误。这里我使用了默认主题twenty seventeen ,有人可以建议我如何根据我的代码添加颜色选择器吗?代码在这里

    /******** Theme options *******/

 /**
 * Create A Simple Theme Options Panel
 *
 */

 // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
  exit;
}

 // Start Class
 if ( ! class_exists( 'WPEX_Theme_Options' ) ) {

class WPEX_Theme_Options {

    /**
     * Start things up
     *
     * @since 1.0.0
     */
    public function __construct() {

        // We only need to …
Run Code Online (Sandbox Code Playgroud)

wordpress custom-wordpress-pages

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

使用描边虚线数组和活动颜色填充划分半圆

我正在研究一个 SVG 仪表,当范围滑块在带有渐变颜色的活动笔划填充上移动时,我想将半圆分成几部分。并想在表针移动时再添加一条黑色运行轨迹。我曾尝试使用stroke-dasharray,但添加此后,所有颜色都会在时间计无法正常工作时出现。

  1. 当范围滑块在具有渐变颜色的活动描边填充上移动时,我想将半圆分成几部分
  2. 我想在仪表指针移动时再添加一条黑色运行轨迹。

我的代码在这里

/* set radius for all circles */
var r = 400;
var circles = document.querySelectorAll('.circle');
var total_circles = circles.length;
for (var i = 0; i < total_circles; i++) {
  circles[i].setAttribute('r', r);
}
/* set meter's wrapper dimension */
var meter_dimension = (r * 2) + 100;
var wrapper = document.querySelector('#wrapper');
wrapper.style.width = meter_dimension + 'px';
wrapper.style.height = meter_dimension + 'px';
/* add strokes to circles  */
var cf = 2 * Math.PI …
Run Code Online (Sandbox Code Playgroud)

javascript css jquery meter

4
推荐指数
2
解决办法
2144
查看次数

SVG渐变色

嗨,我在这里使用 SVG 我试图像这样将渐变添加到 SVG 在此处输入图片说明

白色和灰色渐变,但我无法实现所需的输出。任何人都可以指出我正确的方向。

<svg viewBox="0 0 400 400">
				<defs>  
	  <linearGradient id="GradientRepeat" x1="0" y1="1" x2="0" y2="0" spreadMethod="repeat">
      <stop offset="0.05" stop-color="#fff" stop-opacity="0"/>
      <stop offset="1" stop-color="#777" stop-opacity="1"/>
    </linearGradient>
	  </defs>
    <circle class="sub-menu-circle" cx="0" cy="200" r="160" fill="url(#GradientRepeat)" />
 </svg>
Run Code Online (Sandbox Code Playgroud)

<svg viewBox="0 0 700 700" class="bubble-svg">
	<defs>

		<linearGradient id="GradientRepeat" x1="0" y1="1" x2="0" y2="0" spreadMethod="repeat" gradientTransform="rotate(170)">
			<stop offset="0%" stop-color="#fff" stop-opacity="0"/>
			<stop offset="10%" stop-color="#bdbdbd" stop-opacity="0.5"/>
			<stop offset="20%" stop-color="#fff" stop-opacity="0"/>
			<stop offset="30%" stop-color="#bdbdbd" stop-opacity="0.5"/>
			<stop offset="40%" stop-color="#fff" stop-opacity="0"/>
			<stop offset="50%" stop-color="#bdbdbd" stop-opacity="1"/>

			<stop offset="60%" stop-color="#fff" stop-opacity="0"/>
			<stop …
Run Code Online (Sandbox Code Playgroud)

html javascript css svg canvas

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

严重重音符号显示IE中的错误

我的代码在chrome中工作正常,但在IE中显示错误错误字符,是否还有其他方法可以执行此操作,我尝试使用单引号/双引号在IE中也无法正常工作。谁能建议我该怎么做。 $(`.${divClass}`)从这里得到一个错误。

$(".benefits").click(function() {
  let otherButtons = $(".benefits").not($(this));
  otherButtons.siblings(".card-body").addClass("noDisplay");
  otherButtons.parent().removeClass("active");
  $(this).parent().addClass("active");
  $('.benefits-wrap').children('div').addClass("noDisplay");
  let divClass = $(this).data('div');
  $(`.${divClass}`).toggleClass("noDisplay");
});
Run Code Online (Sandbox Code Playgroud)
.benefits-slideDiv1 {
  background-color: red;
}

.benefits-slideDiv2 {
  background-color: blue;
}

.benefits-slideDiv3 {
  background-color: green;
}

.benefits-slideDiv4 {
  background-color: pink;
}

.noDisplay {
  display: none;
}

div#accordionExample {
  display: flex;
  flex-direction: column;
}

.benefits-wrap {
  background: #ccc;
  height: 100px;
}

.benefits-acc.active {
  background-color: lightblue;
}

.benefits-acc.active h3 {
  color: green;
}
Run Code Online (Sandbox Code Playgroud)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<div class="accordion nav" id="accordionExample" id="myTab" role="tablist">
  <div class="benefits-acc active"> …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery internet-explorer

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

BottomNavigationBarItem中添加的四个图标不起作用

我不熟悉,尝试添加四个图标时创建了底部导航栏。图标颜色变为白色。任何人都可以建议我如何实现这一目标。下面是我的代码。任何帮助将不胜感激。

 bottomNavigationBar: new BottomNavigationBar(items: [
    new BottomNavigationBarItem(icon: new Icon(Icons.add), title: new Text("Text")),
    new BottomNavigationBarItem(icon: new Icon(Icons.person), title: new Text("Contact")),
    new BottomNavigationBarItem(icon: new Icon(Icons.accessibility), title: new Text("Acess")),
    new BottomNavigationBarItem(icon: new Icon(Icons.account_balance), title: new Text("Balance"))
  ]),
Run Code Online (Sandbox Code Playgroud)

dart flutter

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