小编Car*_*lla的帖子

CSS:设置CSS行

.banner-bottom h2 {
  font-size: 2em;
  color: #372568;
  position: relative;
  padding-bottom: 1em;
  text-align: center;
}

.banner-bottom h2:before {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  background: #372568;
  height: 2px;
  width: 8%;
}

.banner-bottom h2:after {
  content: '';
  position: absolute;
  top: 25%;
  right: 25%;
  background: #372568;
  height: 2px;
  width: 8%;
}
Run Code Online (Sandbox Code Playgroud)
<div class="banner-bottom">
  <div class="container">
    <h2>Special Promo</h2>
    <h2>Promo</h2>
    <div>
      <div>
Run Code Online (Sandbox Code Playgroud)

结果:

在此输入图像描述

如何根据编写示例的长度css其行如下:

在此输入图像描述

html css

10
推荐指数
2
解决办法
502
查看次数

如何在WPF项目中将rdlc文件添加到ReportViewer

我通过主窗口的设计者ReportViewerWPF应用程序中添加了一个XAML,我想添加一个现有的rdlc文件.

我希望我的reportviewer在启动时显示一个空的rdlc文件(没有参数),稍后从我的datagrid中选择一行(绑定到observablecollection)相应地更改其参数并显示填充的报告定义而不是空的报告定义.

我将创建一个按钮,将所选行作为命令参数和相关事件以及所有内容,我只需要能够将数据传递给报表.我意识到这不是一个简单的问题所以我会尝试简化:

  1. 如何将现有的rdlc文件添加到ReportViewer(MVVM,WPF)?
  2. 我按下一个按钮 - >相关命令从我的observablecollection获取项目作为参数(我的数据网格中的一行) - >如何将此项目的数据部分传递给报告的未填充(或覆盖,如果填写)部分?

我希望我已经清楚了.谢谢你提前回答!

c# wpf reportviewer rdlc mvvm

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

如何创建多个登录身份验证?

如何为管理员,用户和经理等不同用户创建登录名,以重定向到不同的仪表板.

我在laravel文档中读到了关于中间件但没有得到怎么做.

我推荐以下链接

http://laravel.com/docs/5.1/middleware#registering-middleware

http://laravel.com/docs/5.1/authentication#protecting-routes

请帮我.先感谢您

php laravel-5 laravel-5.1

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

如何对齐和分隔这些按钮?

我希望我的按钮在该框内等距离.我尝试使用左对齐.中心,对,但它实际上并没有移动到任何地方.如果我给它填充,它在移动设备上看起来不太好.

body {
  background-color: #9FDFF0;
}

#mine {
  width: 550px;
  margin: auto auto auto auto;
  padding: 10px 10px;
  background-color: white;
  min-height: 100px;
  border: 2px solid #73c0d8;
  border-radius: 6px;
  height: auto;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  width: auto\9;
  /* ie8 */
}

p {
  font-size: 30px;
}

.OrangeBtn {
  -moz-box-shadow: inset 0px 1px 0px 0px #f9eca0;
  -webkit-box-shadow: inset 0px 1px 0px 0px #f9eca0;
  box-shadow: inset 0px 1px 0px 0px #f9eca0;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, …
Run Code Online (Sandbox Code Playgroud)

html css html5 css3

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

CSS:按钮的中心停止悬停功能

我创建了一个按钮,但当我将鼠标放在上面时,悬停效果会崩溃.有人可以给我一个建议/解决方案吗?

/* spinner style */

.spinner {
  position: relative;
  width: 50px;
  height: 50px;
}

.spinner:before,
.spinner:after {
  content: "";
  display: block;
  position: absolute;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;
}

.spinner-block {
  border: 2px solid #ccc;
  !important;
  border-radius: 50px!important;
  width: 91px;
  height: 91px;
}


/* spinners styles */

@-webkit-keyframes rotate-animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotate-animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg); …
Run Code Online (Sandbox Code Playgroud)

html css hover

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

DefaultPageSettings.Margins不添加边距

根据文档,添加这些代码应该为打印文档添加边距,但是当我在我的代码中使用它时,我看不到任何边距被添加.我对代码的使用是否正确?以下是MSDN的代码:

 printFont = new Font("Arial", 10);
 PrintDocument pd = new PrintDocument(); 
 pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
 pd.PrinterSettings.PrinterName = printer;
 Margins margins = new Margins(100,100,100,100);
 pd.DefaultPageSettings.Margins = margins;
 pd.Print();
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

printDoc = new PrintDocument();
PrinterSettings printSettings = new PrinterSettings();
PaperSize paperSize = new PaperSize("Receipt", 350, 700);

Margins margin = new Margins(2000, 1000, 2000, 1000);
printDoc.DefaultPageSettings.PaperSize = paperSize;

printDoc.PrintPage += new PrintPageEventHandler(pdoc_PrintPage);
PrintPreviewDialog printPreview = new PrintPreviewDialog();
printPreview.Document = printDoc;
DialogResult result = printPreview.ShowDialog();
printDoc.DefaultPageSettings.Margins = margin;
if (result == DialogResult.OK) …
Run Code Online (Sandbox Code Playgroud)

c# wpf printdocument margins

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

使用资源映像作为 RDLC 参数中的值

我正在尝试将图像作为参数传递给 RDLC 报告中的图像。我尝试使用以下内容:

string imgPath = new Uri("pack://application:,,,/Resources/default_product_img.png").AbsoluteUri;

string imgPath = new Uri(AppDomain.CurrentDomain.BaseDirectory + "pack://application:,,,/Resources/default_product_img.png").AbsoluteUri;

string imgPath = new Uri("/Resources/default_product_img.png").AbsoluteUri;

string imgPath = new Uri(AppDomain.CurrentDomain.BaseDirectory + "/Resources/default_product_img.png").AbsoluteUri;

string imgPath = new Uri("pack://application:,,,/Resources/default_product_img.png", UriKind.Absolute).AbsoluteUri;

string imgPath = new Uri(HttpContext.Current.Server.MapPath("~/Resources/default_product_img.png")).AbsoluteUri;

string imgPath = new Uri(HostingEnvironment.MapPath("~/Resources/default_product_img.png")).AbsoluteUri;
Run Code Online (Sandbox Code Playgroud)

但当我运行它时,显示屏总是显示红色 X。我成功地完成了这项工作,但图像的来源与 位于同一级别,.exe而不是在其中。

我也尝试创建一个BitmapImage,但ReportParameter()只接受字符串。

有办法让它发挥作用吗?或者我应该将其复制到.exe文件旁边?

注意事项:

  • 图像源设置为External

  • default_product_img.png位于Resources文件夹内并且有一个Build ActionofResource

  • 参数名称设置为中的值Use this image:

c# resources rdlc

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

两个类:not()选择器

我希望将某些样式应用于一个元素,当它没有两个类时(不是两个类中的任何一个,而是两个类).
:not选择似乎并不接受两班.使用两个单独的:not选择器使其被解释为OR语句.我需要应用样式

p:not(.foo.bar) {
  color: #ff0000;
}
Run Code Online (Sandbox Code Playgroud)
<p class="foo">This is a (.foo) paragraph.</p>
<p class="bar">This is a (.bar) paragraph.</p>
<p class="foo bar">This is a (.foo.bar) paragraph.</p>
<p>This is a normal paragraph.</p>
Run Code Online (Sandbox Code Playgroud)

因此,具有该类的任何元素foo都应该应用样式,以及具有该类的任何元素bar.仅当元素具有两个类(class="foo bar")时,才应该应用样式.

html css css3

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

如何将html页面分成两列?

我试图将我的 html 页面分成两列。一列应该由图像填充,另一列由文本填充。我面临以下问题:

  1. 列不占据确切的 50-50 宽度。

  2. 在图像开始之前,左边有一个细小的边距。需要删除那个边距。

  3. 两列之间存在巨大的差距。

如果有人可以查看此代码并提出更正建议,那将非常有帮助:

.container img {
  width: 100%;
}

.thin-black-border {
  border-color: black;
  border-width: 05px;
  border-style: solid;
}

.header {
  font: 200 80px'Oleo Script', Helvetica, sans-serif;
  color: #2b2b2b;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}
Run Code Online (Sandbox Code Playgroud)
<link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>
<div style="width:100%; height: 100px;background-color:green" class="bg-faded">
  <!-- Main Div -->
  <h1 class="text-center header">Madhubala</h1>
</div>
<div style="float:left;width:50%;" class="container">
  <img src="https://nehamalude.files.wordpress.com/2011/02/madhubala.jpg" class="thin-black-border" />
</div>
<div style="float:left; width:50%; background-color:red; ">
  Right
</div>
Run Code Online (Sandbox Code Playgroud)

html css

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

td中的多行

我花了一些时间弄清楚如何做到这一点,并且我发现我真的不擅长html表。

需要帮助如何实际执行此操作。

这是我坚持的基本代码,不需要表头

<table border="1" width="100%" height="300px">
  <tbody>
    <tr>
      <td rowspan="3">
        Physical Accomplishment
      </td>
      <td>Projected</td>
      <td>Weekly Cumulative</td>
    </tr>
    <tr>
      <td>Actual</td>
      <td>Weekly Cumulative</td>

    </tr>
    <tr>
      <td>Slippage</td>
      <td>Weekly Cumulative</td>
    </tr>
  </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

这是我的目标:

在此处输入图片说明

html

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

标签 统计

html ×6

css ×5

c# ×3

css3 ×2

rdlc ×2

wpf ×2

hover ×1

html5 ×1

laravel-5 ×1

laravel-5.1 ×1

margins ×1

mvvm ×1

php ×1

printdocument ×1

reportviewer ×1

resources ×1