我正在尝试更改css文件中的重叠元素(文本).一行文本(在常规浏览器中)显示为移动中的两行文本,重叠在一起.
此更改适用于网站的移动版本(横向平板电脑的@media部分)
目前,header(h2)文本在iPad /平板电脑上重叠.
来自h2 @media部分的代码:
.da-slide h2{
font-size: 36px;
width: 80%;
top: 40px;
padding: 18px 20px 18px 20px;
Run Code Online (Sandbox Code Playgroud)
(这.da-slide h2是在html中保存此文本的组件)
我尝试了这个line-height属性,但它不起作用?
有任何想法吗...
我试图在我的Index.HTML中的一个段落中加粗并为某些单词(或使它们显示为斜体,不同大小等)着色.
但通常的格式标签(HTML)不起作用.
我有一个StyleSheet,其中包含我网站的所有样式和属性,但我只想在段落中更改三个单词(例如).我该怎么做?
index.html的:
<div id="da-slider" class="da-slider">
<div class="da-slide">
<h2>This is the Heading</h2>
<p>And HERE is where I want to make this word BOLD and this WORD in a different color, for example</p>
<a href="#" class="da-link">Read more</a>
<div class="da-img"><img src="img/pp-slider/imac.png" alt="image01" /></div>
</div>
Run Code Online (Sandbox Code Playgroud)