RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-219473

tttyyyrrrryyy's questions

Martin Hope
tttyyyrrrryyy
Asked: 2020-05-05 13:24:58 +0000 UTC

应该编写什么定位器来获取所需的元素?

  • 0

有一个 .group-list-item 类的块列表。每个块中还有两个 .title.actions。.title 包含块的标题(每个 .group-list-item 都不同),.action 是按钮。问题的症结在于:如何使用 .title = "Title2" 获得特定 .group-list-item 的 .action?ps 我以类似的方式尝试过,但我不知道如何考虑.title。

return browser.element(by.css('.group-list-item:last-child')).element(by.css('.action'));

在此处输入图像描述

在此处输入图像描述

整个区块标记为红色,带有标题的span所在的区块为黄色,需要点击的区块标记为绿色。

angular
  • 1 个回答
  • 10 Views
Martin Hope
tttyyyrrrryyy
Asked: 2020-05-15 17:15:46 +0000 UTC

css,html列表的问题

  • 1

有这样一个问题:需要实现如下截图中这样的构造。 在此处输入图像描述

我试图实现 ul,但不知何故它不起作用。

  .li_custom_markk p {
  margin: 0;
  color: #222222;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  line-height: 1.25;
  letter-spacing: 1.8px;
}

.lipluspadd {
  margin-left: 0px;
  padding-right: 11px;
  border: 1px solid #bbbbbb;
  padding-left: 13px;
  vertical-align: middle;
}

.ul_custom_mark {
  width: 430px;
  height: 327px;
  margin-top: 25px;
  padding: 0;
  margin-left: 27px;
}

.ul_custom_markkk {
  width: 430px;
  height: 327px;
  margin-top: 25px;
  padding: 0;
  margin-left: 27px;
}

.li_custom_marks+.li_custom_marks {
  background: url("../img/icons/2-layers2.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_marks+.li_custom_marks+.li_custom_marks {
  background: url("../img/icons/2-layers3.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_marks+.li_custom_marks+.li_custom_marks+.li_custom_marks {
  background: url("../img/icons/2-layers4.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_marks+.li_custom_marks+.li_custom_marks+.li_custom_marks+.li_custom_marks {
  background: url("../img/icons/2-layers4.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_marks+.li_custom_marks+.li_custom_marks+.li_custom_marks+.li_custom_marks {
  background: url("../img/icons/5.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_markk+.li_custom_markk {
  background: url("../img/icons/7.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_markk+.li_custom_markk+.li_custom_markk {
  background: url("../img/icons/8.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_markk+.li_custom_markk+.li_custom_markk+.li_custom_markk {
  background: url("../img/icons/9.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_markk+.li_custom_markk+.li_custom_markk+.li_custom_markk+.li_custom_markk {
  background: url("../img/icons/10.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.li_custom_marks p {
  margin: 0;
  color: #222222;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  line-height: 1.25;
  letter-spacing: 1.8px;
<div class="col-md-5">
  <ul class="ul_custom_mark">
    <div class="lipluspadd">
      <li class="li_custom_marks">
        <p>Внедрение и сопровождение</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_marks">
        <p>Отпимизация под ваши нужды</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_marks">
        <p>Разработка уникальных конфигураций</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_marks">
        <p>Удалённое сопровождение и обслуживание баз данных</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_marks">
        <p>Интеграция 1С с другими программами и базами данных</p>
      </li>
    </div>
  </ul>
</div>
<div class="col-md-5">
  <ul class="ul_custom_markkk">
    <div class="lipluspadd">
      <li class="li_custom_markk">
        <p>Восстановление баз данных и исправление ошибок</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_markk">
        <p>Интеграция 1С с оборудованием </p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_markk">
        <p>Консультации по работе 1С</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_markk">
        <p>Ускорение процессов формирования отчетов, обработок данных</p>
      </li>
    </div>
    <div class="lipluspadd">
      <li class="li_custom_markk">
        <p>Внедрение типовых и собственных конфигураций</p>
      </li>
    </div>
  </ul>
</div>

我无法将所有内容都放入结果中,当为 li 设置一个高度时,我无法将所有内容都居中,因为 某处 2 行文本,某处 3-x。我已准备好删除所有内容并重新开始,但谁能告诉我如何最好地实现这一点?提前非常感谢。代码很糟糕,我知道,但我已经尝试了很多东西,结果却是一团糟。

html
  • 4 个回答
  • 10 Views
Martin Hope
tttyyyrrrryyy
Asked: 2020-02-08 15:39:30 +0000 UTC

PrestaShop 1.7 全宽滑块

  • 0

你好。有这样一个问题:我无法以任何方式将标准滑块拉伸到屏幕的全宽,我通过.carousel在theme.css文件中爬行。在发现

.carousel, .carousel-inner {
    position: relative;
}

您可以添加宽度和高度并以像素为单位设置大小,它会变小或变大,但您希望所有内容都具有自适应性并适用于不同的大小。也许有人遇到过这个问题。提前致谢。 在此处输入图像描述

слайдер
  • 1 个回答
  • 10 Views
Martin Hope
tttyyyrrrryyy
Asked: 2020-06-25 15:07:31 +0000 UTC

不在运行时生成的控件

  • 0

再会。在研究 Stillman 和 Green 的书时,出现了一个问题:启动程序时没有错误,但是当按下按钮时,并没有生成敌人并将其放置在比赛场地上。

XAML 代码:

 <Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        mc:Ignorable="d"
        Title="Save_The_Humans" Height="700" Width="1000">
    <Window.Resources>
        <ControlTemplate x:Key="EmptyTemplate" TargetType="{x:Type ContentControl}">
            <Grid Height="120" RenderTransformOrigin="0.5,0.5" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Grid.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Grid.RenderTransform>
                <Ellipse Fill="#FFFB0606" Stroke="Black" Width="90" Height="90" Margin="13,10,17,20" VerticalAlignment="Stretch"/>
            </Grid>
        </ControlTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1"/>
            <RowDefinition/>
            <RowDefinition Height="150"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="140"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="160"/>
        </Grid.ColumnDefinitions>
        <Canvas x:Name="playArea" Grid.Row="1" Grid.ColumnSpan="3" >
            <Canvas.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0"/>
                    <GradientStop Color="#FF00FFD1" Offset="1"/>
                </LinearGradientBrush>
            </Canvas.Background>
            <StackPanel x:Name="human" Canvas.Left="430" Orientation="Vertical" Canvas.Top="184" Width="100">
                <Ellipse Fill="White" Height="10" Width="10"/>
                <Rectangle Fill="White" Height="25" Width="10"/>
            </StackPanel>
            <TextBlock x:Name="gameOverText" TextWrapping="Wrap" Text="GAME OVER" FontSize="100" FontFamily="Arial Black" Canvas.Left="175" Canvas.Top="274" FontStyle="Italic" FontWeight="Bold"/>
            <Rectangle Height="50" Width="50" Canvas.Left="640" Canvas.Top="119" RadiusY="10" RadiusX="10" RenderTransformOrigin="0.5,0.5">
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="45"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFDCFF00" Offset="0.359"/>
                        <GradientStop Color="#FFFF00F3" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
        </Canvas>
        <ProgressBar Grid.Column="1" Grid.Row="2" Height="20"/>
        <ContentControl Content="ContentControl" Grid.Column="2" HorizontalAlignment="Left" Margin="10,30,0,0" Grid.Row="2" VerticalAlignment="Top" Template="{DynamicResource EmptyTemplate}" Height="100" Width="100"/>
        <Button x:Name="button" Content="Button" HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="75" Margin="30,30,0,0" Grid.Row="2" Click="button_Click_1"/>
    </Grid>
</Window>

代码隐藏:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Animation;
namespace WpfApplication1
{
    /// <summary>
    /// Логика взаимодействия для MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }   

        Random random = new Random();
        private void button_Click_1(object sender, RoutedEventArgs e)
        {

            AddEnemy();
        }

        private void AddEnemy()
        {
            ContentControl enemy = new ContentControl();
            enemy.Template = Resources["EnemyTemplate"] as ControlTemplate;
            AnimateEnemy(enemy, 0, playArea.ActualWidth - 100, "(Canvas.Left)");
            AnimateEnemy(enemy, random.Next((int)playArea.ActualHeight - 100),
               random.Next((int)playArea.ActualHeight - 100), "(Canvas.Top)");
            playArea.Children.Add(enemy);

        }

        private void AnimateEnemy(ContentControl enemy, double from, double to, string propertyToAnimate)
        {
            Storyboard storyboard = new Storyboard()
            {
                AutoReverse = true,
                RepeatBehavior = RepeatBehavior.Forever
            };
            DoubleAnimation doubleanimation = new DoubleAnimation()
            {
                From = from,
                To = to,
                Duration = new Duration(TimeSpan.FromSeconds(random.Next(4, 6)))
            };
            Storyboard.SetTarget(doubleanimation, enemy);
            Storyboard.SetTargetProperty(doubleanimation, new PropertyPath(propertyToAnimate));
            storyboard.Children.Add(doubleanimation);
            storyboard.Begin();
        }
    }
    }
c#
  • 1 个回答
  • 10 Views
Martin Hope
tttyyyrrrryyy
Asked: 2020-09-07 23:03:29 +0000 UTC

白屏。PHP

  • 2

晚上好。重点是这个。所以我安装了 XAMPP 并运行了它。计算机是空的,即 没有杀毒软件,没有 Skype。一切都在运行,即 没有程序干扰。接下来,让我们转到本地主机。让我们尝试调用 phpinfo()。 在此处输入图像描述

它有效,现在我将使用以下代码创建一个 html 文档:

<html>
<head>
<title></title>
</head>
<body>
<?php
echo "affsfasfasfas";
?>
</body>
</html>

我得到: 在此处输入图像描述

白名单。我在需要的地方保存了所有这些,有什么问题吗?

php
  • 2 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5