我不知道如何使background-image不透明度为 0.5 和内容完全不透明度。
.about-section {
height: 100%;
padding-top: 50px;
text-align: center;
/*background: #eee;*/
background: url(../images/about.jpg);
background-repeat: no-repeat;
background-size: contain;
background-position: center;
opacity: 0.3;
}Run Code Online (Sandbox Code Playgroud)
<section id="about" class="about-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="head">About Us</h1>
</div>
</div>
</div>
</section>Run Code Online (Sandbox Code Playgroud)
我想获取用户在我的应用程序中的某些活动或片段中花费的次数并将其保存到我的数据库中。有什么办法吗?
有人说使用 Firebase Google Analytic,但我想在我的应用程序中使用它。
我有一个元素列表,其中添加了图标作为:before. 标题长度较大时出现在图像下方的文本。
我怎样才能在咨询下面加上服务这个词?
li>a {
position: relative;
display: block;
}
.submenu-icon:before {
content: "";
margin-right: 0px;
background: url(/sites/all/themes/bootstrap_cck/images/sprites.png) no-repeat;
background-size: 40em;
background-position: -250px -184px;
padding: 15px 40px 12px 15px;
display: inline-block;
vertical-align: middle;
line-height: 47px;
width: 55px;
height: 47px;
}Run Code Online (Sandbox Code Playgroud)
<li class="first">
<a href="Consultancy-professional-services" class="submenu-icon">Consultancy & Professional Services </a>
</li>Run Code Online (Sandbox Code Playgroud)
我怎么能height: calc(100% - 18px);在CSS2中做?我div在页面上有3 个.
<body>
<div id="top">top</div>
<div id="middle">middle</div>
<div id="bottom">bottom</div>
</body>
Run Code Online (Sandbox Code Playgroud)
top100%身高减去200pxmiddle成为200px并且就在下面topbottom紧接着bottom我的想法是,当滚动条位于最顶端时top,middle占据浏览器窗口的100%,但用户应该可以向下滚动查看bottom.当用户滚动top并且bottom仍然是相同的大小时(除非用户调整窗口大小).
我想在没有JavaScript的情况下这样做,它需要是CSS2,因为我们还没有CSS3兼容的浏览器.
我在尝试将样式应用于兄弟元素时遇到了问题.
.ac_numeric input[type=text][disabled] {
cursor: not-allowed;
}Run Code Online (Sandbox Code Playgroud)
<div class="ac_numeric">
<input type="text" />
<div class="numericbuttonswrapper">
<div class="numericupbutton"></div>
<div class="numericdownbutton"></div>
</div>
</div>Run Code Online (Sandbox Code Playgroud)
这一切都运行正常,当它被禁用时将"不允许"光标应用于我的输入但我还需要在禁用输入时将光标添加到我的div class="numericbuttonswrapper".
通过可用的css选择器时我找不到答案,这可能吗?
我用的是最新的apache poi
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但我无法设置粗体字体,下面的代码不起作用
font.setBold(true);
Run Code Online (Sandbox Code Playgroud)
因为默认为 true
set a boolean value for the boldness to use. If omitted, the default value is true.
Run Code Online (Sandbox Code Playgroud)
并且也不存在setBoldWeight方法
那么如何在最新的apache poi中设置粗体粗细呢?
代码
XSSFWorkbook wb = new XSSFWorkbook()
XSSFSheet sheet = wb.createSheet();
XSSFCell cell = sheet.createRow(0).createCell(0);
cell.setCellValue("hello world");
XSSFCellStyle cellStyle = wb.createCellStyle();
XSSFFont font = wb.createFont();
font.setBold(true);
cellStyle.setFont(font);
cell.setCellStyle(cellStyle);
try (FileOutputStream fos = new FileOutputStream("bold_test.xls")) {
wb.write(fos);
}
Run Code Online (Sandbox Code Playgroud)
影响
大胆的效果应该是这样的
我有一些问题需要在我的PDF中显示外部图形.我尝试使用各种路径,url()但似乎没有任何工作.这是我缺少的东西吗?
<fo:table-cell>
<fo:block>
<fo:external-graphic src="url(ss/naam.png)"></fo:external-graphic>
</fo:block>
</fo:table-cell>
Run Code Online (Sandbox Code Playgroud) 在Vaadin 7中KeyListener,TextField只有在EnterKey媒体上才有.
我正在寻找一个包含SuperImmediateTextField但与Vaadin 7兼容的附加组件.
我使用Vaadin版本7.1.8
如何使用PDO执行此操作?我使用MySQL作为我的数据库.我想打电话给最后一个infog_id.
$q = $conn->query("SELECT * FROM Infographic ORDER BY infog_id DESC LIMIT 1");
$q->fetchAll();
Run Code Online (Sandbox Code Playgroud) 我使用以下代码删除html中的空格.我只想删除两个标签之间的空格.但是下面的代码替换了所有的空格
IE删除">"和"<"之间的所有空格
//read the entire string
$str=file_get_contents('sample.txt');
//replace all white spaces
$str=str_replace("\n", "",$str);
$str=str_replace("\t", "",$str);
$str=str_replace(" ", "",$str);
//write the entire string
file_put_contents('sample.txt', $str);
Run Code Online (Sandbox Code Playgroud)